cinely / mule-uploader

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

Incorrect chunks array index #40

Open Flynsarmy opened 9 years ago

Flynsarmy commented 9 years ago

In create_upload you were using _chunksuploaded but when resuming an upload you're checking for chunks. This PR fixes that.

gabipurcaru commented 9 years ago

Yes, but your PR changes 'chunks_uploaded' into 'chunks' in both places; the JSON key should be named 'chunk', but the db columns is named 'chunks_uploaded'

Flynsarmy commented 9 years ago

I'm not sure I understand. My PR changes chunks to _chunksuploaded. Not sure where you get that the JSON key needs to be named chunk from.