-
Notifications
You must be signed in to change notification settings - Fork 68
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
Not serving static files #1
Comments
I used a fix from @hpwit here: https://github.com/hpwit/lib Copy And copy |
Do you know if this fix ever made it upstream? Copying around a precompiled file from somewhere with no history, no indication of whether tip of tree is better/more recent and so forth, is not super inspiring :) |
Good question. I haven't tried the standard one included in the esp32 sdk in a while. I would hope it's been fixed. |
Hmm, I wasn't able to get it to work - with or without the fix applied. My browser just seems to sit loading a white page. Maybe I have some strange network settings. Then again, I wasn't able to find the appropriate folders mentioned for the first file in the fix. I ended up copying that to |
I've also tried both versions, fix and no fix, and get the same length mismatch error |
I am not currently able to get the ESP32 web server to serve static files like I was able to with the ESP8266. The browser requests a file fine, and the response from the ESP32 web server has the correct headers, but the response body is empty.
It is able to connect to wifi, and basic HTTP requests work fine, just not serving static files from SPIFFS.
I have tried three different ESP32 web server libraries, with varying degrees of success:
I'm using this Arduino plugin to upload the sketch data directory containing the static files required for the web app:
Arduino ESP32 filesystem uploader
I am able to list the files stored in SPIFFS to the serial monitor:
Here's a request for
/index.htm
:And the response headers:
The response body is empty.
HTTP REST requests work fine.
Here's the REST request:
and the response:
index.har.zip
The text was updated successfully, but these errors were encountered: