You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After updating to the version v7.1 we get this 'error':
Content Type Spoof: Filename 534fa0c71f8a678c08e6fbc40e4e362d20220215-98201-1po9m4z.xml (application/xml from Headers, ["application/xml", "text/xml"] from Extension), content type discovered from file command: text/html. See documentation to allow this combination.
I think the detection for the content_type changed with #75
INFO: [paperclip] Content Type Spoof: Filename 20222022_Teaser_Silex.pdf (application/pdf from Headers, [“application/pdf”] from Extension), content type discovered from file command: inode/x-empty. See documentation to allow this combination.
Content Type Spoof: Filename Règles_de_gouvernance_.pdf (application/pdf from Headers, [“application/pdf”] from Extension), content type discovered from file command: inode/x-empty. See documentation to allow this combination.
Describe the bug
After updating to the version v7.1 we get this 'error':
I think the detection for the content_type changed with #75
New behavior:
Old behavior:
Mime type from file (Mac OS)
Correct solution?
Is this the best way to handle this Problem? Are there any other known content_type changes?
Is there a best of for
Paperclip.options[:content_type_mappings]
?Update I found out that it depends on the XML file what the file command returns:
So my updated solution would be:
The text was updated successfully, but these errors were encountered: