轨道直接上传到Amazon S3 [英] Rails direct upload to Amazon S3

查看:175
本文介绍了轨道直接上传到Amazon S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待将功能添加到我的Rails应用程序直接上传文件到Amazon S3。从我的研究普遍的共识似乎是使用 S3-SWF上传-插件。我已经安装使用的宝石一个示例应用程序,但我不能让它发挥好与只允许单个文件的选择。我也想创建一个记录后上传和使用回形针创建缩略图,我能找到一些指导。

I'm looking to add functionality to my Rails app to upload files directly to Amazon S3. From my research the general consensus seems to be to use the s3-swf-upload-plugin. I've setup a sample app using that gem but I can't get it to play nice with only allowing the selection of a single file. I'd also like to create a record post upload and use paperclip to create a thumbnail for which I can find little guidance.

所以,我的问题是:

(1)我是在使用宝石或者我应该采取另一种appraoch正确的轨道上吗?

(1) am I on the right track using that gem or should I be taking another appraoch?

(2)是否有任何样本在那里,我可以借鉴?

(2) are there any samples out there that I could use for reference?

任何帮助将是非常美联社preciated。

Any assistance would be much appreciated.

克里斯

推荐答案

尝试新的宝石名为 CarrierWaveDirect 它允许你上传文件直接到S3使用HTML表单,轻松地将影像处理成一个后台进程

Try a new Gem called CarrierWaveDirect it allows you to upload files direct to S3 using a html form and easily move the image processing into a background process

这篇关于轨道直接上传到Amazon S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆