Just reading with interest your work on implementing ftp.I would like to put ftp into my project so I can transfer stored files on SD card, html and log files.I want to be able to have ftp access to the Arduino Mega from where ever I am.

What is the latest code that I should now be looking at to do this, I don't yet see a standard library for it.

i really wonder that this is the only thing i can find on FTP.I did spend a lot of money for hardware for the thing i want to build.I'm learning now and reading sensors and saving to SD works.But i never was thinking that the uploading stuff through FTP will be a problem.I mean there is so many Arduino<->Internet stuff out there that a thought thisis something basic and will not be a problem.

Now i found out that it looks like nobody uses FTP.Everybody is sending his stuff through HTML POST and is always connected to a server.I'm not really understanding why. If your Internet connection is down your stuffis not recorded, or if your router is broken, and so on...Also sending everything in a URL is not really good practice.

I'm new to the Arduino programming stuff but i did some commercial websitesand know all the CMS- Shop systems, HTML, PHP, SQL, Javascript...

So my idea was to save my Arduino stuff to SD (csv), upload it to the serverand let php write it into the database. So if the internet connection is downmy Arduino still can record the data. And the idea was to make two files causeyou can't log data and upload the file ad the same time.

So Arduino logs data to csv1 and after some time to csv2. When logging to csv2 starts - csv1 gets uploadedand vice versa.

So now i try to get this FTP code to work with sdfat and get rid of the download stuff buti don't get it.One drawback is that the password is send in plain so explicit FTPS would be cool.

Now I have been demoted to "nobody"?http://playground.arduino.cc/Code/FTP

At least in Puerto Vallarta when I would help some poor boat belonging to an errant owner, I was "somebody", as in "Hey!! Somebody moved my boat and kept it from being run over and sunk by that cruise ship!".

I'm not certain what you want to do. If it works the way it is, why do you want to change it? The way that code is written, it either uploads to the server, or downloads from the server, depending on FTPWRITE. Set like this, it compiles as a download (upload from client end) from the SD to the FTP server.

I don't use sdfat. That is a subject best handled in the Storage section, one more down. That is where fat16lib hangs out. Post your problem there with a link to the FTP code, and maybe fat16lib (or someone experienced with sdfat) will be able to translate that for you.

I intend to use your FTP code. Can you please explain which part of your code actually prints out the response from FTP server to Serial monitor? I assume is the eRcv() function, am I correct? If so, can you please explain how does it work? (the function)

I tried a file from my SD, however, the serial monitor didn't show the TRANSFERING response from the server, so I would like to understand more. Please help. Thanks