Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Site's logo management via AWS S3 adapter #169

Merged
merged 7 commits into from
Dec 16, 2016
Prev Previous commit
Force the permissions of the file to be public-read
  • Loading branch information
Fernando Blat committed Dec 16, 2016
commit 371580f10447621ff92bcc18665a64d5dd12830a
2 changes: 1 addition & 1 deletion lib/file_uploader/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def call
object = resource.bucket(bucket_name).object(file_name)

File.open(file.tempfile, "rb") do |file_body|
object.put(body: file_body)
object.put(body: file_body, acl: 'public-read')
end

object.public_url
Expand Down