Amazon S3的多部分上传与plupload和Rails 3 [英] Amazon S3 Multipart Upload with plupload and Rails 3
问题描述
亚马逊拥有多部分上传功能,您可以在块发送一个文件,并把它装在S3上。这使得像上传到S3的功能,一些不错的履历。从另一个问题,我得到这个漂亮的链接:的Rails 3及Plupload
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
我的问题是有没有人有他们所使用的plupload分块的功能与亚马逊多部分功能的任何例子吗?理想的情况是与carrierwave和放大器;雾。
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:
- 生成的唯一ID上载与plupload,
我们可以做一个事件时,plupload 启动? - 在附加一个Ajax请求 完成了该ID的块
- 有对Ajax控制器方法 服务器,上传使用到S3 ID
- 当所有完成火
控制器动作重新组合
- 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
还有据说一些PHP code,做一些结合,但不能与S3和我不能忍受阅读PHP。
There is supposedly some PHP code which does some combining, but not with S3 and i can't stand to read PHP.
推荐答案
享受和放大器;随时到餐桌/拉的请求......&放大器;等等
enjoy & feel free to fork/pull request ... & so on
这篇关于Amazon S3的多部分上传与plupload和Rails 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!