This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
SPIFFSEditor not displaying file contents on ESP32 with LittleFS #1210
Closed
Description
Hi,
thanks for this great library. I used it a lot on ESP8266. But now with ESP32 and LittleFS I found that the SPIFFSEditor doesn't display the file contents (only the file names on the left frame).
I got the error message:
[E][vfs_api.cpp:29] open(): myFile.txt does not start with /
The following change (i.e. adding the "/" in front of the filename) fixes this behavior:
ESPAsyncWebServer/src/SPIFFSEditor.cpp
Line 397 in f71e3d4
request->_tempFile = _fs.open(String("/") + request->arg("edit"), "r");
But I'm not sure if this is really the solution or only a quick workaround. What is your opinion?
Metadata
Metadata
Assignees
Labels
No labels