FTP upload

spinnaker

Joined Oct 29, 2009
7,830
For the TS, if you don't have permission to be uploading files to a site then don't be surprised if you get a visit from the French version of the FBI. Organizations do not take hacking attempts lightly. Constant failed attempts at file upload could be considered hacking by the organization.
 

vpoko

Joined Jan 5, 2012
267
I have never heard of STOR, just looked it up and looks like it is the same a PUT. Try PUT instead of STOR. STOR might not be supported across all platforms. Does not look like it is supported under DOS.
Hello,

@spinnaker, @Eric007 , The wiki shows the STOR function and not the PUT function:
https://en.wikipedia.org/wiki/List_of_FTP_commands
However this site shows the PUT function and not the STOR function for both windows and linux FTP programs:
http://simotime.com/ftp4cmd1.htm

Bertus
PUT is an FTP client command used by many common FTP clients, while STOR is part of the FTP protocol. When you tell your client to PUT a file, there will be several commands sent to open the data channel and actually transmit the file. One of those will be STOR.
 

vpoko

Joined Jan 5, 2012
267
Hi All,

I am doing some tests uploading some recorded audio (.3gp) to an FTP server and see if the upload functionality works but I am getting this error "Server returned an error: 553 Could not create file."

I am using this https://www.swfwmd.state.fl.us/data/ftp/ for testing.

It's a small xamarin app and here the url and credentials used. I think it connect fine but cannot upload.
What could be the problem? the file format? or... any other good ftp Server I can test on?

Code:
string FtpUrl = [URL]ftp://ftp.swfwmd.state.fl.us[/URL];
string UserName = "anonymous";
string Password = "myemail";
Any help/guidance will be appreciated.
Eric
Just a thought, why don't you bring up a local FTP server (one comes with Windows as part of IIS, or you can download the open source FileZilla) and test there? That way you can control directory permissions and be sure your process works before worrying about servers which may not be configured as you think.
 

Thread Starter

Eric007

Joined Aug 5, 2011
1,158
I have never heard of STOR, just looked it up and looks like it is the same a PUT. Try PUT instead of STOR. STOR might not be supported across all platforms. Does not look like it is supported under DOS.
Correct! I had tried PUT using the command line and it worked! So I had to change my code... So I installed FluentFTP (https://github.com/hgupta9/FluentFTP) in my project it was all good!
 

Thread Starter

Eric007

Joined Aug 5, 2011
1,158
Just a thought, why don't you bring up a local FTP server (one comes with Windows as part of IIS, or you can download the open source FileZilla) and test there? That way you can control directory permissions and be sure your process works before worrying about servers which may not be configured as you think.
Yes I am using FileZilla to actually check my app uploaded files and others...
I connect to the following Server ftp.uconn.edu with 'anonymous' as username with no password
 
Top