Paperclip doc about url options:
You can choose to have the bucket's name placed domain-style (bucket.s3.amazonaws.com) or path-style (s3.amazonaws.com/bucket).
How would look like the setup to actually have bucket's name placed domain-style? I can't force paperclip to generate urls like bucket.s3.amazonaws.com instead of s3.amazonaws.com/bucket.
Add
:url
and:path
to thePaperclip
default options in yourapplication.rb
orenvironment.rb
If you bucket name is DNS compatible then you can create url .s3.amazonaws.com/object....
but if it is not DNS compatible then you can not create as you want.
Thanks
Just set it like this:
Or like this: