dwilkie / carrierwave_direct

Process your uploads in the background by uploading directly to S3
MIT License
839 stars 181 forks source link

Limit filetypes to upload #242

Open mariuswestgaard opened 2 years ago

mariuswestgaard commented 2 years ago

I would like to be able to limit the filetypes which are allowed to upload. I'm aware of allowed_content_types on the uploader, but this does not make s3 reject the file if the file's content type is not matching the specified allowed_content_types. To do that, the policy should include the allowed_content_types data.

Am I missing something, or is there no way to do this as of now?