jnicklas/carrierwave — Issue #646: s3 perms diff for version when using custom filename
Author: pdk
Created: 2012-03-06 20:48:50+00:00
State: open

I have an image uploader that resizes images to a "standard" version, and stores via fog on s3.

version :standard do
process :resize_to_limit => [200, 200]
end

Everything is fine until I add this to my uploader:

def filename
"#{Time.now.to_i % 1000000}_#{super}" if original_filename
end

The original file is still publicly readable on s3, but the standard version is not (access denied from s3 in web browser). If I comment out the filename method (ie, go back to default filename) the standard version is publicly readable.