[wp-trac] [WordPress Trac] #39963: MIME Alias Handling
WordPress Trac
noreply at wordpress.org
Mon Mar 27 17:02:17 UTC 2017
#39963: MIME Alias Handling
--------------------------------------+------------------------------
Reporter: blobfolio | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by blobfolio):
Replying to [comment:23 lukecavanagh]:
> @hvianna
>
> Updated the plugin to '''blob-mimes.2.zip''' and this .xlsx test file
uploaded fine on a local dev site running WP 4.7.3.
>
> http://dev-builds.libreoffice.org/tmp/test.xlsx
Thanks @lukecavanagh. Because of legacy code living within the
`fileinfo.so` extension itself, a single PHP server might return a
different MIME type from one XLSX file to another.
The class that was throwing @hvianna for a loop earlier,
`application/CDFV2-xxx`, is a sort of catch-all that is used when a
document contains ambiguous, corrupt, or unknowable magic headers (usually
because of features like encryption or compression). Some XLSX files will
trigger it, some won't.
We'll have to wait for @hvianna to test the exact file from earlier to be
sure, but it should be good now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39963#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list