[wp-trac] [WordPress Trac] #39550: Non-image files with the application/octet-stream mime type cannot be uploaded
WordPress Trac
noreply at wordpress.org
Thu Jan 12 15:02:20 UTC 2017
#39550: Non-image files with the application/octet-stream mime type cannot be
uploaded
---------------------------+-----------------------------
Reporter: greatislander | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.2
Component: Upload | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: administration
---------------------------+-----------------------------
Comment (by greatislander):
@stiofansisland Can you download
[https://gist.github.com/greatislander/ae54e374d32a8fa2f5a59713548eb46c
this gist] and test one of the CSV files you are trying to upload? From
your command line, enter:
{{{
php check-mimetype.php /path/to/upload.csv
}}}
I can confirm that in my testing of two `.docx` files, one of them returns
`application/vnd.openxmlformats-officedocument.wordprocessingml.document`
and uploads to WordPress as expected, while the other returns `application
/octet-stream` and fails to upload.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list