我正在尝试创建一个函数来上传两个xml文件到另一个网站一天一次,我可以使用此代码连接良好
<cfftp action = "open"
username = "xxxx"
connection = "MyConnection"
password = "xxxx"
server = "xxx"
passive="yes"
secure="true">但是当我尝试使用下面的代码将文件放入
<cfftp
action="putFile"
connection="MyConnection"
localfile="xxx"
remotefile="xxx">然后我得到了这个错误
An error occurred during the sFTP putFile operation.
Error: Permission denied.
The error occurred in xxxxx: line 13
11 : connection="MyConnection"
12 : localfile="xxxx"
13 : remotefile="xxxx">额外的背景信息是,我可以通过filezilla上传。
发布于 2018-09-13 21:36:35
只需在putFile操作中使用passive="yes":
<cfftp
action="putFile"
connection="MyConnection"
localfile="xxx"
remotefile="xxx"
passive="yes">发布于 2013-06-21 18:13:01
我刚刚看了一下我之前写的一些使用cfftp的代码,我的远程文件包含了完整的路径。你能确认你的是不是这样吗?
如果还试图将其上传到错误的目录中,则会出现错误“权限被拒绝”。让我们知道你是怎么走的。
https://stackoverflow.com/questions/17231599
复制相似问题