markevans / dragonfly-s3_data_store

S3 data store for the Dragonfly ruby gem
MIT License
62 stars 58 forks source link

Honor native content type from s3 based storage #33

Open cbillen opened 2 years ago

cbillen commented 2 years ago

When the file was not originally uploaded by dragonfly and does not have the x-amz-meta-extra header with the name out of which the extension and mime type can be derived, this pull request provides a fall back method to inherit it

It reduces the case where the file is served as application/octet-stream as the fall back default.

cbillen commented 2 years ago

Thoughts? concerns? @markevans