15

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.

Amala
  • 1,718
  • 1
  • 17
  • 29
  • Hey, having the same need here! Did you finally find something? Let me know – Chris May 04 '11 at 08:31
  • No this is on the back burner for now. Don't think anyone has done it. I could probably write it, would take time, but I don't know how to make it generic enough to release as a rails plugin. – Amala May 04 '11 at 13:45
  • Plupload actually doesn't support this yet. They are hoping to have a Java based one in the future that will do this though: http://www.plupload.com/punbb/viewtopic.php?id=585 – iwasrobbed May 27 '11 at 16:19
  • @Amala, got any luck in this.. i am also looking for the same, if you find something useful, let me know... – RameshVel Jul 21 '11 at 10:23
  • Looking for the same functionality. For now I'm using Uploadify to post to S3... – fro_oo Aug 11 '11 at 12:29

2 Answers2

2

this is very similar, you should find Interesting

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

Luca G. Soave
  • 12,271
  • 12
  • 58
  • 109
0

You can find simple core java code without AWS library, This will help u implement in any technology.. http://dextercoder.blogspot.in/2012/02/multipart-upload-to-amazon-s3-in-three.html

tumbudu
  • 699
  • 11
  • 26