-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
SPIFFS filename length limit? #2858
Comments
Yes, as indicated in the readme included with SPIFFS, it is designed for small systems with sparse RAM (which is the limited factor on ESP8266). Consequently, it has several simplifications and limitations. |
i figured that would probably be the reason, but having a quick look in the docs and the code and not seeing anything jump out at me i figured i would ask the question... |
I just proposed an update to the documentation indeed: #2860 . Hopefully it will be integrated in a future release, if any... |
Basic Infos
Hardware
Hardware: Wemos D1 R2
Core Version: git master
Description
I'm using the latest git version of this library through the arduino 1.6.9 IDE and I've noticed that one of the files i loaded into the SPIFFS filesystem was not being served when it was requested. when i tried to debug this i found that SPIFFS.exists(filename) was returning false for this particular file even though it was definitely there. however another file with a similar name (3 chars shorter) was being returned just fine, so i renamed the file to shorten the filename and re uploaded it, at which point SPIFFS.exists succeeds.
the filename in question was this:
iframeResizer.contentWindow.min.js
and when shortened:
iframeResizer.content.min.js
however another file:
iframeResizer.contentWindow.map
was being returned just fine.
does the SPIFFS filesystem have some inherent limit on the length of filenames?
if so does this include the whole directory (if it was in a subdirectory) or just the filename?
and if so, what is the limit and why?
The text was updated successfully, but these errors were encountered: