Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is chunked uploading supported? #16

Open
robj opened this issue Oct 23, 2012 · 1 comment
Open

Is chunked uploading supported? #16

robj opened this issue Oct 23, 2012 · 1 comment

Comments

@robj
Copy link

robj commented Oct 23, 2012

I have multi-gigabyte files that always fail uploading.

Is it possible to use S3 CORS + chunked uploads as per

https://github.com/blueimp/jQuery-File-Upload/wiki/Chunked-file-uploads

?

I have tried adding the following options:

$(this).fileupload({
  maxChunkSize: 1000000, //  1 MB for testing
  maxRetries: 100,
  retryTimeout: 500,

this results in a series of successive 1MB POSTs with appropriate headers

eg.. Content-Range changes

second to last chunk:

Content-Description:
Content-Disposition:attachment; filename="VTS_01_1.VOB"
Content-Length:1001090
Content-Range:bytes 3000000-3999999/4014080

last chunk:

Content-Disposition:attachment; filename="VTS_01_1.VOB"
Content-Length:15170
Content-Range:bytes 4000000-4014079/4014080

However after the upload is complete on S3 the file is only the size of the final chunk, it is overwriting rather than appending the chunks.

Any suggestions here?

@ncri
Copy link
Owner

ncri commented Oct 23, 2012

First of all I would switch to an uploader using CORS, if you are still using this project. It simplifies the code a lot.
This gem is easy to use: github.com/waynehoover/s3_direct_upload

About the chunked upload: I have never tried it, so no idea what is going wrong. Might be a good idea to ask at Stackoverflow about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants