holgerlembke / ESPxWebFlMgr

Manage your ESP8266/ESP32 SPIFFS/LittleFS files with a simple web based interface
Other
61 stars 14 forks source link

download does not work #7

Open fred9999 opened 2 years ago

fred9999 commented 2 years ago

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 commented 2 years ago

Sorry, currently I have no idea of a fix.

fred9999 commented 2 years ago

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 commented 1 year ago

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; } ...