[wp-trac] [WordPress Trac] #39550: Non-image files with the application/octet-stream mime type cannot be uploaded
WordPress Trac
noreply at wordpress.org
Wed Jan 11 23:00:09 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: Awaiting Review
Component: Upload | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Since [39831], a valid Word document (with the `.docx` extension) which
has the `application/octet-stream` mime type can no longer be uploaded as
the comparison in [https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/functions.php?rev=39831#L2324 this block] will fail.
A Word document can end up with this mime type when downloaded from a web
server (this happens on GitHub, and I'm sure many other places) or when
exported from an application other than Microsoft Word (e.g. Apple Pages,
macOS 10.12).
There are certainly security considerations around modifying this
behaviour, but as it stands, this change appears to be a regression from
earlier versions, as many valid files can no longer be uploaded.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list