[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Thu Jan 12 15:28:15 UTC 2017
#39550: Some Non-image files fail to upload after 4.7.1
---------------------------+------------------------
Reporter: greatislander | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7.2
Component: Upload | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+------------------------
Comment (by stiofansisland):
Replying to [comment:8 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.
On a server where the csv fails i get: "text/plain" (PHP 7.0.8)
on a server where it works i get: "Fatal error: Call to undefined function
finfo_open()", probably not helpful but maybe related?(PHP 5.6.22)
Sample csv: http://ayecode.io/test.csv
Stiofan
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list