cinely / mule-uploader

Stubborn HTML5 Amazon S3 uploader
http://mule-uploader.com/
MIT License
223 stars 43 forks source link

Upload starts over at 0 if interrupted #18

Closed jerel closed 10 years ago

jerel commented 10 years ago

I'm running Firefox 24.0 and when I try the demo the upload starts fine but if I refresh after 10Mb or so and reselect the file it starts uploading from the beginning again.

Also if the file is partway uploaded and I turn off my connection and then turn it back on it does resume but first it counts down to 0Mb (showing a connection speed of -0B/s) and then starts uploading again.

Tested with a 64Mb file and an 8Gb file.

ElderBrE commented 10 years ago

Are you sure that the first chunk was actually uploaded? Considering there are 4 parallels workers by default, you could have uploaded 10MB between all three but none of them having completed 6MB.

jerel commented 10 years ago

It does look like this is the issue, thanks. When I watch until one of the PUT requests finishes and then interrupt the upload it resumes correctly. It might be a good idea to change the demo wording to reflect this.

gabipurcaru commented 10 years ago

Right.. I'll update the description for clarity. Thanks for the heads up!