Image corruption on upload to s3, production only. (carrierwave, engineyard)

前端 未结 3 1979
时光说笑
时光说笑 2021-01-19 03:11

I am using carrierwave to upload images to amazon s3. This works great on development, but not when I push it to my server (engineyard cloud trial).

The process w

3条回答
  •  庸人自扰
    2021-01-19 04:03

    Go through the carrierwave / fog setup for EngineYard, as described here: http://www.engineyard.com/blog/2011/a-gentle-introduction-to-carrierwave/ and here: http://docs.engineyard.com/use-carrierwave-and-optionally-fog-to-upload-and-store-files.html

    Is your "fog" public set to "false" or "true"? If it's "false", check this thread, as you'll need to use the "authenticated_url" property instead of what's returned: http://groups.google.com/group/carrierwave/browse_thread/thread/2f727c77864ac923

提交回复
热议问题