Skip to content

always upload private files to s3 #17

Description

@dongennl

hi, thanks for this, it has helped me a lot

question about s3 security; I want all uploaded files to be secure (i.e. not publicly accessible). I have a helper to generate the secure URLs

I think it is related to this line in the code:

{'acl': '#{options[:acl]}'},

Is there a value I can set this to permanently that will upload all files as private? I tried 'private' but got an error from s3:

AccessDeniedInvalid according to Policy: Policy Condition failed: ["eq", "$acl", "private"]

guess i don't fully understand acl...

many thanks for any input.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions