Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorrect file loaded reporting (#1007)
As the upload is completed with request.onprogress the server returns the Content-Length and the browser takes this size... In my case the returned Content-Length is lower, because i don't return the image and so the progress bar is going back. To fix this behavier we should replace the file.loaded set in request.onprogress to: file.loaded = Math.max(evt.loaded, file.loaded); instead of file.loaded = evt.loaded;
- Loading branch information