Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to download fine but not upload some files #26

Open
bill-orange opened this issue Mar 29, 2019 · 4 comments
Open

Able to download fine but not upload some files #26

bill-orange opened this issue Mar 29, 2019 · 4 comments

Comments

@bill-orange
Copy link

bill-orange commented Mar 29, 2019

I am running esp8266FTPServer on an ESP8266. I have used this library for several years without any issues. I recently had to recompile some old code using the Arduino IDE 1.8.8 plus the newer 2.5 board manager. I am not sure if my problems relate to the new IDE and board manager, insufficient memory or some other unrelated issue. Filezilla has gone through several revisions since I used this code last too.

Here's the problem:

Using Filezilla I can download fine. When I try to upload with Filezillza, many files show a size of zero. If I try to delete them and go again, I get the overwrite message even thought they should be deleted and I still get the zero size file. My sketch seems able to do these operations fine, no problems upload, downloading or deleting if done within the sketch. Free memory is around 32000.

Not only can I not isolate the source of the problem, I am not sure how to go about troubleshooting it,

Thoughts anyone?

@stephen-coates
Copy link

stephen-coates commented Apr 5, 2019

Just loaded this today and had the same issue, any attempt to upload results in a zero byte file as does renaming an existing file. After a bit of experimentation I point the finger at Filezilla, WinScp and Windows 10 explorer both upload and rename files without issue. Filezilla appears to upload the file as a hidden file with the filename prefixed by a comma e.g. ,filename and also creates a file named +r,length of uploaded file. Possibly Filezilla is expecting a response from the FTP server before converting these files to the uploaded name but if so it's a piece of FTP arcana that Microsoft and WinScp cheerfully ignore.

@tbienvenu
Copy link

I've the same problem as bill-orange, files are 0 length.
I found that filezilla closed too quickly connection after send data so the ESP see a available connection but data connection status are closed() before the esp test it.
However data are received by the ESP and data.available() return true on the connection.

@bill-orange
Copy link
Author

Interesting. I finally gave up and switched to CoreFTP which seems to work fine.

@Jahencov
Copy link

Now I see it is similar issue that I had.
Some solution applied by me described here:
#33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants