作者orthonormal (Yotsai)
看板Ruby
标题[问题] Upload image to S3 by paperclip
时间Thu Mar 27 23:04:03 2014
最近在练习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)
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 39.10.42.52
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Ruby/M.1395932645.A.F6A.html
※ 编辑: orthonormal 来自: 39.10.42.52 (03/27 23:18)
2F:→ danny8376:paperclip#understanding-storage 03/28 00:32
3F:→ danny8376:倒数第二段就是S3的资讯了... 03/28 00:34
4F:→ orthonormal:By default, this location is : 03/28 22:04
5F:→ orthonormal::rails_root/public/system/:class/:attachment 03/28 22:05
6F:→ orthonormal:/:id_partition/:style/:filename 03/28 22:06
7F:→ orthonormal:感谢 danny8376 03/28 22:06
8F:推 johnlinvc:建议用fog 03/30 14:18
9F:→ orthonormal:可以请问建议的观点吗? 先感谢建议! 03/30 22:09
10F:推 johnlinvc:因为aws-sdk 的s3 很久没更新了 03/30 22:24