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

gz file coruption #21

Open
vangalvin opened this issue Aug 12, 2018 · 1 comment
Open

gz file coruption #21

vangalvin opened this issue Aug 12, 2018 · 1 comment

Comments

@vangalvin
Copy link

A strange little issue..
I have some large .js files "212k and 290k" included in to my web interface, i decided that using gz and the browsers deflate option would be a much better alternative.

If i upload the .gz files using the serial IDE interface it all works perfectly but if i upload the same files using FTP for some reason it appears the file becomes corrupt or truncated.

using gzip the files come down in size to 26k so i would not have thought the issue was a size problem.

@MarkusAD
Copy link

Try adding the code given in pull request #20 - I had the same problem with short files and recent esp8266 core code, the modification in that PR fixed it nicely. The transfer was being closed before the last bytes of the file were read from the client.

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

2 participants