[wp-trac] [WordPress Trac] #45615: CSV Mime Type fails upload
WordPress Trac
noreply at wordpress.org
Fri Jan 4 07:43:46 UTC 2019
#45615: CSV Mime Type fails upload
--------------------------------------+------------------------
Reporter: Kloon | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.0.3
Component: Upload | Version: 5.0.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Comment (by tellyworth):
attachment:45615.3.diff includes a mildly hacky fix for a few file types
like CSV that are often misidentified by fileinfo as `text/plain`.
It also includes a test and partial fix for #45633 - when coupled with the
patch on that ticket I believe it should be fixed also. (The patch on that
ticket alone did not fix the problem in my testing, see the unit tests in
this diff).
This does not fix other file types that have been reported as problematic,
like aac and fonts. I haven't yet been able to reproduce those, most
likely because I don't have sample files that are specific enough. A
similar approach to the `text/plain` fix might work for those, but **we
need sample files** in order to test.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45615#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list