[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1
WordPress Trac
noreply at wordpress.org
Fri Feb 24 20:37:38 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.3
Component: Upload | Version: 4.7.1
Severity: critical | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------
Comment (by joemcgill):
> I wonder if there's an opportunity to offer to rename a file based on
what `finfo` reports? Should be non-blocking (i.e. just fallback to
leaving the file named as was), but if WordPress has an entry for both the
file extension-derived type and the `$real_mime` and they're different, it
could do an extension swap (like what happens for images now).
Thanks @blobfolio. I think this enhancement is worth considering, but I
think that's out of scope for this current issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list