sarbogast / grails-bootstrap-file-upload

Grails Plugin to integrate Sebastian Tschan's Jquery File Upload
http://grails.org/plugin/bootstrap-file-upload
Apache License 2.0
33 stars 25 forks source link

Chunked File Upload looses some data #27

Closed menzel closed 8 years ago

menzel commented 9 years ago

I cloned the repo and changed the upload to work with chunks. I set the size to 5mb, for testing I use a 125mb text file (with line numbering) for upload.

After the upload is complete the first lines of the first file look like this:

So there are about 32000 lines missing (exept line 859)

859 32860In vitae tempor est, at varius lectus... 32861 32862Sed sapien sem, eleifend eleifend mollis sit amet, hendrerit vitae sem. Aliquam rhoncus fer

The parts all have 4.8mb in /tmp, except the last one with 466K.

I use grails 2.2.4

Code on my index page:

... maxChunkSize='5000000' />
menzel commented 8 years ago

Everything works when you upgrade the file-upload plugin. In the demo version: upgrade to grails 2.5.0, add assets for r (see other issue), then replaced all javascript, css, cors and img with the current version of the jquery-file-uploader from github.