[問題] Upload image to S3 by paperclip

看板Ruby作者 (Yotsai)時間10年前 (2014/03/27 23:04), 編輯推噓2(208)
留言10則, 3人參與, 最新討論串1/1
最近在練習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://www.ptt.cc/bbs/Ruby/M.1395932645.A.F6A.html ※ 編輯: orthonormal 來自: 39.10.42.52 (03/27 23:18)

03/28 00:32, , 1F

03/28 00:32, , 2F
paperclip#understanding-storage
03/28 00:32, 2F

03/28 00:34, , 3F
倒數第二段就是S3的資訊了...
03/28 00:34, 3F

03/28 22:04, , 4F
By default, this location is :
03/28 22:04, 4F

03/28 22:05, , 5F
:rails_root/public/system/:class/:attachment
03/28 22:05, 5F

03/28 22:06, , 6F
/:id_partition/:style/:filename
03/28 22:06, 6F

03/28 22:06, , 7F
感謝 danny8376
03/28 22:06, 7F

03/30 14:18, , 8F
建議用fog
03/30 14:18, 8F

03/30 22:09, , 9F
可以請問建議的觀點嗎? 先感謝建議!
03/30 22:09, 9F

03/30 22:24, , 10F
因為aws-sdk 的s3 很久沒更新了
03/30 22:24, 10F
文章代碼(AID): #1JD3tbzg (Ruby)
文章代碼(AID): #1JD3tbzg (Ruby)