This commit is contained in:
Me No Dev 2016-05-13 00:19:50 +03:00
parent ffa893f770
commit 7cb06b1bb1
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ void AsyncWebServerRequest::_parsePlainPostChar(uint8_t data){
void AsyncWebServerRequest::_handleUploadByte(uint8_t data, bool last){
_itemBuffer[_itemBufferIndex++] = data;
if(last || _itemBufferIndex = 1460){
if(last || _itemBufferIndex == 1460){
if(_handler)
_handler->handleUpload(this, _itemFilename, _itemSize - _itemBufferIndex, _itemBuffer, _itemBufferIndex, false);
_itemBufferIndex = 0;