thoughtbot/paperclip — Issue #617: Fog/S3 storage URL issues
Author: mdi
Created: 2011-10-08 17:18:34+00:00
State: open

I'm seeing two issue when using Fog/S3 as the storage for Paperclip.

1) Upon upload to S3, the initial directory created is blank, e.g. '//'.

2) When accessing the URL for viewing an image, It seems the URL is encoded twice resulting in something like this:

`https://livejam-dev.s3.amazonaws.com/%252FUsers%252Fmdi%252FProjects%252Flive_jam%252Fpublic%252Fsystem%252Fflyers%252F1246%252Fsmall%252Fbong_girl1.jpg?1318076874`

If I decode the URL twice, I get the proper URL to the image which is then:

`https://livejam-dev.s3.amazonaws.com//Users/mdi/Projects/live_jam/public/system/flyers/1246/small/bong_girl1.jpg?1318076874`