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

Content type for JSON files recognized as "invalid/invalid" #2617

Closed smnscp closed 2 years ago

smnscp commented 2 years ago

The content type for JSON files is not properly recognized. This is because Marcel does not derive their content type by “magic” (as JSON does not have magic bytes).