[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:44: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.3
Component:  Upload                   |     Version:  4.7.1
 Severity:  critical                 |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------

Comment (by blobfolio):

 Replying to [comment:120 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.

 Agreed, especially as we do not want to add further delay to this patch.
 Once we figure out #39963 we'll have an opportunity for more robust
 renaming anyhow.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39550#comment:121>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list