我正在尝试创建一个函数,每天一次将两个 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 上传。