[wp-trac] [WordPress Trac] #45615: CSV Mime Type fails upload
WordPress Trac
noreply at wordpress.org
Sat Dec 22 18:58:20 UTC 2018
#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 Mahesh901122):
Looks like this is the bug of PHP https://bugs.php.net/bug.php?id=75380
All other related to MIME -
https://bugs.php.net/search.php?cmd=display&search_for=mime&x=0&y=0
Testing MIME of file with PHP Code:
{{{
echo 'PHP Version: ' . phpversion() . "<br/><br/>";
echo 'file.vtt | ' . mime_content_type( 'file.vtt') . "<br/>";
echo 'file.xml | ' . mime_content_type( 'file.xml') . "<br/>";
}}}
On Localhost:
{{{
PHP Version: 7.2.4
file.vtt | text/plain
file.xml | text/xml
}}}
On Live
{{{
PHP Version: 7.0.32-4+ubuntu16.04.1+deb.sury.org+1
file.vtt | text/plain
file.xml | application/xml
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45615#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list