10000 Added naive content length to upload struct by RickeyWard · Pull Request #5142 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Added naive content length to upload struct #5142

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

Merged
merged 10 commits into from
Nov 30, 2018
Prev Previous commit
Next Next commit
Assinged content length on creation of HTTPUpload
  • Loading branch information
RickeyWard committed Sep 16, 2018
commit 0c8e3a3c2558071047337dcc487af328abe1129f
1 change: 1 addition & 0 deletions libraries/ESP8266WebServer/src/Parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ bool ESP8266WebServer::_parseForm(WiFiClient& client, String boundary, uint32_t
_currentUpload->type = argType;
_currentUpload->totalSize = 0;
_currentUpload->currentSize = 0;
_currentUpload->contentLength = len;
#ifdef DEBUG_ESP_HTTP_SERVER
DEBUG_OUTPUT.print("Start File: ");
DEBUG_OUTPUT.print(_currentUpload->filename);
Expand Down
0