[wp-trac] [WordPress Trac] #5304: Cannot upload images that are not Gif/jpeg/png

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 1 08:38:13 GMT 2007


#5304: Cannot upload images that are not Gif/jpeg/png
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.4      
Component:  Administration  |     Version:  2.4      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 An error is raised when uploading non gif/jpeg/png files if PHP reconises
 the image type.

 An example of this is a BMP file.

 wp_create_thumbnail Assumes that the filetype is of the given types, and
 fails otherwise.

 I've attached a patch which aborts creating the thumbnail if its not a
 supported type, But a better patch would be to change the function to use
 the IMAGETYPE_XXX constants(Instead of 1,2,3) and to support the full
 range of image formats.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5304>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list