Use Raw FTP commands to upload file

2019-07-30 22:10发布

问题:

I need to upload a file using Raw FTP commands in my program. I got downloading to work using RETR, but how do I upload?

Thanks!

回答1:

You need the STOR command for that. You will also need PORT or PASV with STOR to make it work.



回答2:

I got the answer..You have to use the STOR command followed by the file. F.e. "STOR test.txt"



标签: ftp