[问题] Upload image to S3 by paperclip

楼主: orthonormal (productzero)   2014-03-27 23:04:03
最近在练习Upload image 到 AWS S3 bucket by Paperclip gem,
似乎Paperclip doesn't let you upload directly to S3,是经由一个temp folder,
那么是在哪里去指定S3 bucket name, AWS_ACCESS_KEY_ID资讯呢?
谢谢赐教!! (Rails 4)
作者: danny8376 (钓到一只猴子@_@)   2014-03-28 00:32:00
https://github.com/thoughtbot/paperclip#understanding-storage倒数第二段就是S3的资讯了...
楼主: orthonormal (productzero)   2014-03-28 22:04:00
By default, this location is ::rails_root/public/system/:class/:attachment/:id_partition/:style/:filename感谢 danny8376
作者: johnlinvc (阿翔)   2014-03-30 14:18:00
建议用fog
楼主: orthonormal (productzero)   2014-03-30 22:09:00
可以请问建议的观点吗? 先感谢建议!
作者: johnlinvc (阿翔)   2014-03-30 22:24:00
因为aws-sdk 的s3 很久没更新了

Links booklink

Contact Us: admin [ a t ] ucptt.com