Can't work with files on esp32 #7498
Replies: 1 comment
-
Posted at 2024-11-15 by @gfwilliams I'm not sure you're using the code you have above. Posted at 2024-11-15 by user159262 I use storage library (4 line) Attachments: Posted at 2024-11-15 by user159262 upd:
Posted at 2024-11-15 by @gfwilliams That's from the FAT filesystem again. It's the Looks like when you init the webserver you need to be sure you specifically list your file:
See https://www.espruino.com/WebServer#how-to-use-the-webserver-module Posted at 2024-11-15 by @gfwilliams ... or you can try copying the data into the FAT filesystem:
At the moment the Web IDE doesn't have the ability to access/upload to the FAT filesystem directly as it's something that got added just for the ESP32 Posted at 2024-11-15 by user159262 used this, still got error "INVALID_NAME". Btw I uploaded file by this function in the IDE Attachments: Posted at 2024-11-15 by user159262 I figured out the problem, I had to name the file in memory index.html (I just started studying all this), thanks for the answers and help! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-11-14 by user159262
I want to make a webserver using webserver module. I uploaded an html file via Espruino WEB IDE and wanted to reference it when creating a webserver, I did it in the following way:
but when I start my server and browse the page, I see this message:
what did I do wrong?
Beta Was this translation helpful? Give feedback.
All reactions