【问题标题】:Curl Upload: Give file does not exist卷曲上传:给定文件不存在
【发布时间】:2017-08-09 13:16:03
【问题描述】:

我正在尝试使用 curl 上传文件,但它显示:

curl: (19) 给定文件不存在

此错误消息与源文件无关,它与目标文件相关。我知道这一点,因为当我使用 FileZilla 在服务器上创建一个空文件然后上传它时,它工作得非常好。

我正在使用的命令:

curl -I --http1.0 -T "cache.txt" "ftp://user:passwd@fastdownload.nitrado.net/unturned/hash.php"

【问题讨论】:

    标签: curl ftp upload


    【解决方案1】:

    尝试使用cache.txt的完整路径,即:

    curl -I --http1.0 -T "/full/path/to/cache.txt" "ftp://user:passwd@fastdownload.nitrado.net/unturned/hash.php"
    

    还要确保您对 unturned 目录具有适当的权限。

    【讨论】:

    • 是的,权限没问题,我用同一个账号在filezilla上传文件。
    猜你喜欢
    • 2011-06-07
    • 2020-04-24
    • 2012-06-21
    • 2013-03-21
    • 2014-05-09
    • 2017-07-14
    • 1970-01-01
    • 1970-01-01
    • 2013-02-19
    相关资源
    最近更新 更多