We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17065df commit 7d2560cCopy full SHA for 7d2560c
libraries/WebServer/src/Parsing.cpp
@@ -477,14 +477,14 @@ bool WebServer::_parseForm(WiFiClient& client, String boundary, uint32_t len){
477
if(_currentHandler && _currentHandler->canUpload(_currentUri))
478
_currentHandler->upload(*this, _currentUri, *_currentUpload);
479
_currentUpload->status = UPLOAD_FILE_WRITE;
480
- int argByte;
+ int argByte = _uploadReadByte(client);
481
readfile:
482
483
- do{
484
- argByte = _uploadReadByte(client);
+ while(argByte != 0x0D){
485
if(argByte < 0) return _parseFormUploadAborted();
486
_uploadWriteByte(argByte);
487
- }while(argByte != 0x0D);
+ argByte = _uploadReadByte(client);
+ }
488
489
argByte = _uploadReadByte(client);
490
0 commit comments