Files created but, No data getting uploaded via using FTP in shell

限于喜欢 提交于 2019-12-11 13:25:42

问题


I am using command

ftp -n -s:C:\FTP_cmd.txt ftp.madrecha.com

the FTP_cmd.txt file contains

user
myName@domain.com
Pa$$Word
Put C:\AccessDocumentation.pptx
quit

The file is getting created on server. but, size is 0 bytes. No data in the file. I tried using FileZilla to upload same file using same user. That was successful and file was created with 352 KB

Is there issue in the command or this is server side issue?

PS: I tried running using cmd (on windows) and also on Powershell (on windows). But resulted in same issue.

Thanks in advance.

UPDATE: Attaching screenshot of the command run.


回答1:


I don't have the reputation to comment at the moment, so I'm writing my guesses as an answer.

I think the "put" command has to be lowercase. Additionally you should check the file permissions, you may have write access to the FTP server but no right to read from the file you want to copy to the server.



来源:https://stackoverflow.com/questions/35743072/files-created-but-no-data-getting-uploaded-via-using-ftp-in-shell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!