[wp-trac] [WordPress Trac] #32746: Media Upload mimeType validation bug

WordPress Trac noreply at wordpress.org
Tue Jun 23 18:51:27 UTC 2015


#32746: Media Upload mimeType validation bug
--------------------------+-------------------------
 Reporter:  vivekbhusal   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.3
Component:  Media         |     Version:  4.2.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+-------------------------
Changes (by wonderboymusic):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => 4.3


Comment:

 Shouldn't it be:

 {{{
 var type = this.props.get('type');
 return ! type || -1 !== attachment.get('mime').indexOf( type );
 }}}

 Can you try that and see if it works?

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


More information about the wp-trac mailing list