[問題] 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