Files created but, No data getting uploaded via us

2019-08-15 18:33发布

问题:

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.