Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3 Multipart Upload with plupload and Rails 3

Amazon has multipart upload functionality where you can send a file in chunks and get it assembled on S3. This allows for some nice resume like functionality for uploading to S3. From another question i got this nice link: Rails 3 & Plupload

My question is does anyone have any examples where they used the plupload chunking feature with the Amazon multipart feature? Ideally with carrierwave & fog.

I can see it doing the following:

  • Generate Unique ID for the upload with plupload,
    can we do an event when the plupload starts?
  • Attaching an ajax request to the chunk completed with the ID
  • Having ajax controller method on the server which uploads to s3 using the ID
  • when all are complete fire a
    controller action to reassemble

There is supposedly some PHP code which does some combining, but not with S3 and i can't stand to read PHP.

like image 757
Amala Avatar asked Apr 26 '11 21:04

Amala


People also ask

Does S3 support multipart upload?

Amazon S3 is excited to announce Multipart Upload which allows faster, more flexible uploads into Amazon S3. Multipart Upload allows you to upload a single object as a set of parts. After all parts of your object are uploaded, Amazon S3 then presents the data as a single object.


1 Answers

this is very similar, you should find Interesting

enjoy & feel free to fork/pull request ... & so on

like image 108
Luca G. Soave Avatar answered Sep 21 '22 15:09

Luca G. Soave