我正在使用coldfusion 9而我正在尝试从ftp站点获取文件并将其加载到ram而不是文件系统中.如果我使用安全的ftp连接尝试它,它会失败,并显示以下错误:
sFTP getfile操作期间发生错误.错误:C:\ JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\ram:\ test.txt(文件名,目录名或卷标语法不正确).检查路径,文件名或目录是否错误.
如果我使用非安全的ftp站点尝试相同的操作,它可以正常工作.这是代码:
<cfftp action = "open"
username = "xxxxx"
connection = "My_query"
password = "xxxxxxx"
server = "ftp.xxxxxx.com"
port="13266"
secure = "true"
stopOnError = "Yes">
<cfftp action="getfile"
connection="My_query"
remoteFile="/something.txt"
stopOnError="true"
localfile="ram://test.txt">
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
606 次 |
最近记录: |