Skip to content

OTA Update Web Browser - MobileFirst #3961

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

Closed
MSergW opened this issue Dec 13, 2017 · 2 comments
Closed

OTA Update Web Browser - MobileFirst #3961

MSergW opened this issue Dec 13, 2017 · 2 comments

Comments

@MSergW
Copy link

MSergW commented Dec 13, 2017

libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.cpp
replace:

R"(<html><body><form method='POST' action='' enctype='multipart/form-data'>
                  <input type='file' name='update'>
                  <input type='submit' value='Update'>
               </form>
         </body></html>)";

to

R"(<!DOCTYPE html><html><head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width,initial-scale=1'/>
</head>
<body><form method='POST' action='' enctype='multipart/form-data'>
  <input type='file' name='update'>
  <input type='submit' value='Update'></form>
</body></html>)";

then when upgrade from mobile phone - the items will be of normal size

@igrr
Copy link
Member

igrr commented Dec 14, 2017

Could you please open this as a Pull Request?

d-a-v pushed a commit that referenced this issue Sep 20, 2019
* Allow SPIFFS update via ESP8266HTTPUpdateServer

This adds capability to update the SPIFFS image via
the same mechansism as firmware in the 
ESP8266HTTPUpdateServer.

It does not provide any dependency or linkage between
firmware and spiffs image updating; they are each taken
on their own, each followed by a reboot.

(I wrote this before seeing the other PR for similar
functionality; I like this a bit better, becaue it uses
the available SPIFFS size, and does not hide magic numbers
(U_SPIFFS) in the html...)

(It also cleans up a stray \n from commit ace0622)

* A simple filter

* Review #3234 (review)

* Including suggestions for mobile first #3961

* SPIFFS rennamed to FS

* including comments from @earlephihower

* button renaming

* missing #include for LittleFS

* generic names as suggested by @d-a-v
@devyte
Copy link
Collaborator

devyte commented Nov 10, 2019

The suggestion was merged a while back with #3732 .
Closing.

@devyte devyte closed this as completed Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants