[wp-trac] [WordPress Trac] #46903: Uploading .txt file fails due to 'fileinfo' extension thinking it's a file with MIME type 'text/html' instead of 'text/plain'
WordPress Trac
noreply at wordpress.org
Fri Apr 12 22:11:34 UTC 2019
#46903: Uploading .txt file fails due to 'fileinfo' extension thinking it's a file
with MIME type 'text/html' instead of 'text/plain'
--------------------------+------------------------------
Reporter: renstillmann | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.1.1
Severity: blocker | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Comment (by tobifjellner):
Temporary workaround could be to write some empty html comment in the file
and disregard it afterwards, but you'll know the resulting type. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46903#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list