README.md in paperclip-aws-1.6.5 vs README.md in paperclip-aws-1.6.6

- old
+ new

@@ -110,9 +110,26 @@ * `:server_side_encryption` – `'AES256'` (the only available encryption now) * `:storage_class` – `:standard` (default) or `:reduced_redundancy` * `:content_disposition` +### :path ### +Remember to specify a folder in a root of your bucket. If you don't , you'll be able to save without problems, +but S3 will respond with Access Denied on read. + +Examples: + +* **Bad** (you will get permission denied error) + * `:path => "/:style/:id/:filename"` + * `:path => "/images/:id/:filename"` + +* **Good** (there is a root folder specified) + * `:path => "images/:style/:id/:filename"` + * `:path => ":style/:id/:filename"` + +The main problem of the "Bad" case - it creates nameless folder in a root of a bucket which seems to be an issue when reading, +so make sure you don't put '/' in front of the path. + ## How `paperclip-aws` creates urls? ## 'paperclip-aws' redefines Paperclip `url` method to get object URL. \ No newline at end of file