[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Fri Jan 13 15:00:18 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 shfarr):
I am really sorry about that. I set the mime-type but never checked, as it
was never necessary. Apparently as the file goes through the download
process, the type changes back to octet-stream by the time it ends up in a
file. Whether this is a browser issue or something in between remains to
be seen. I will need to check.
On your other line of thought, the "server side fallback" method might be
a good option. It is a practice for web applications to deliberately set
the content type to octet-stream to facilitate download over opening the
file by the browser, which probably creates a lot of mismatched files out
there.
Replying to [comment:39 mensmaximus]:
> Replying to [comment:38 shfarr]:
> > Please see the test key store file in the attachment section. Cheers.
>
>
> The p12 file you provided returns 'application/octet-stream' instead of
'application/x-pkcs12'.
> Tested within WordPress and directly at the linux shell with
finfo_file() from PHP 7.0.14.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list