[wp-trac] [WordPress Trac] #39550: Some Non-image files fail to upload after 4.7.1

WordPress Trac noreply at wordpress.org
Sat Jan 14 22:29:36 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 karolis92):

 Hello,
 I'm also having problems after 4.7.1 update with uploading non image
 files.
 It seems to break at the part where validation tries to get "real_mime"
 using "finfo_file"
 As i see "real_mime" is undefined when it's compared to $type

 Googled that "finfo_file" is only on PHP >= 5.3.0, and I'm running on
 5.2.17.
 Maybe that's the peroblem? I think that "function_exists( 'finfo_file' )"
 should then return false, but it returns true. But I'm not a PHP developer
 so thats not the staff I really understand.

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


More information about the wp-trac mailing list