Patch upload can fail (The file contents (text/plain charset=us-ascii) do not match its extension (patch).) on Linux when mimedetect is enabled. Maybe this should be mentioned in readme. After disabling mimedetect the patch is uploaded successfully and displayed as "text/x-diff".

Comments

skizzo’s picture

I should maybe add that my MimeDetect module is using PHP's fileinfo extension to detect MIME types, and it has no settings...

aidanlis’s picture

Project: Patch manager » MimeDetect

I think maybe this should be a bug against the mimedetect module?

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.