josephchrzempiec wrote:Hello Rudy i have the link https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer/examples/FSBrowser and I uploaded it but i can a page that say FileNotFound.
I don't have all the other libraries for the other library to work so I am using the above. There are two things that need to be done. The FSBrowser.ino program compiled and loaded, and the contents of the data folder loaded to the SPIFFS memory area of the flash chip on the ESP12.
In the Tools tab of the Arduino IDE there needs to be a selection called
ESP8266 Sketch Data Upload just above the board selection section. That needs to be executed to transfer the files in the data area.
I tried it with my setup and I got an error saying that "ESPTOOL NOT FOUND!". It used to work but I am running a newer GIT version of the Arduino-ESP8266 code and things have changed. I needed to load a newer version of the upload tool. I found that at this link.
https://github.com/esp8266/arduino-esp8 ... -470147771I extracted the file and replaced the file in my C:\Users\Rudy\Documents\
Arduino\tools\ESP8266FS\tool folder. After that I was able to upload the contents of the C:\Users\Rudy\Documents\
Arduino\esp8266\FSBrowser\data directory.
I was able to them run the code on the ESP module and get the web pages. The following is what got printed to the serial port on startup.
Code: Select allConnected! IP address: 192.168.100.106
Open http://esp8266fs.local/edit to see the file browser
HTTP server started
pm open,type:2 0
handleFileRead: /edit.htm
handleFileRead: /index.htm
handleFileList: /
handleFileRead: /favicon.ico
handleFileRead: /index
handleFileRead: /index.htm
handleFileRead: /graphs.js
I hope this helps. Let me know if there is anything that is unclear.