carrierwaveuploader / carrierwave

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
https://github.com/carrierwaveuploader/carrierwave
8.78k stars 1.66k forks source link

Fix content type detection for JSON files. #2618

Closed smnscp closed 2 years ago

smnscp commented 2 years ago

Resolves #2617

thiagofm commented 2 years ago

Hey @smnscp,

Thanks for your contribution ❤️💜💙💚💛

Cheers.

PS: that testfile(spec/sanitized_file_spec.rb) could have some love. A lot of variable assignments could be moved to let blocks and DRY'd up. In case you are looking to contribute more, be my guest there.