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

download does not work #7

Open
fred9999 opened this issue Feb 18, 2022 · 3 comments
Open

download does not work #7

fred9999 opened this issue Feb 18, 2022 · 3 comments

Comments

@fred9999
Copy link

Thank you for the File Manager. I like its minimalistic design and bare essential feature list very much.

I'm trying to get the ESP32basicwsagzip.ino work on ESP32 (ESP32 Dev Module 4MB, LittleFS)

Features that work are edit, rename, upload, delete.

Download does not work. Browser goes to the address 192.168.1.44:8080/c?dwn=data.txt for file "data.txt", but nothing happens, empty webpage is shown.
Clicking on folder, browser goes to the address 192.168.1.44:8080/c?dwn=folder but does not represent anything

Download all files downloads alles.zip file
When I try to unzip it with IZArc it complains "bad zip header found". If I unzip it anyway it contains only the first file alphabetically from LittleFS file system, but the content is empty, 0 Bytes.

The behavior is the same on Firefox and Google Chrome.

Do you have any suggestions how to debug this situation and get your script working?

Thank you in advance.

@holgerlembke
Copy link
Owner

Sorry, currently I have no idea of a fix.

@fred9999
Copy link
Author

Hi Holger,

OK I see. Thank you for the reply anyway!

LittleFS seems to be a bit tricky / buggy on ESP32. For example in my tests the "append to file" speed is about 10 times slower that with SPIFFS (about 60ms vs. 5ms). I have posted the issue on a couple of forums but no fix / advice so far.

Kind regards,
Fred

@shurra85
Copy link

shurra85 commented Mar 15, 2023

I have exactly the same problem. I solved it! Edit the file \libraries\ESPxWebFlMgr-master\src\ESPxWebFlMgrWp.h
...
function downloadfile(filename) {
window.location.href = "/c?dwn=/" + filename;
}
...

mhaberler pushed a commit to mhaberler/ESPxWebFlMgr that referenced this issue May 9, 2023
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

3 participants