Skip to content
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
@steff393

Description

@steff393

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:

request->_tempFile = _fs.open(request->arg("edit"), "r");

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions