Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Conversation

@aparajita
Copy link

Currently chunked uploading is not passing the updated options to _onDone, which causes the test at the beginning to fail (because options.loaded and options.total are missing), which then causes an extra progress event to be sent with loaded == total * 2.

By passing the updated options to _onDone, everything works as expected.

…fields up to date, not the original options

Otherwise the test at the beginning of _onDone fails and an extra overall progress event is sent with a loaded number that is total * 2.
@rabink
Copy link

rabink commented Feb 15, 2013

I was seeing this error as well (200% progress). This fix seems to work.

@blueimp blueimp closed this in ace155d Mar 3, 2013
@blueimp
Copy link
Owner

blueimp commented Mar 3, 2013

Thanks for your contribution.
Sorry for not merging your code, but there was a simpler fix by just testing for options.uploadedBytes.

@aparajita
Copy link
Author

No need to apologize, you know the code a little better than me!

@aparajita aparajita deleted the fix-on-done branch March 3, 2013 15:15
@blueimp
Copy link
Owner

blueimp commented Mar 3, 2013

Thanks! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants