[wp-trac] [WordPress Trac] #6629: HTML uploads fail

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 7 10:54:54 GMT 2008


#6629: HTML uploads fail
------------------------+---------------------------------------------------
 Reporter:  tellyworth  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  2.5.1    
Component:  General     |     Version:  2.5      
 Severity:  normal      |    Keywords:  has-patch
------------------------+---------------------------------------------------
 HTML uploads fail with the error "Specified file failed upload test." from
 the Add Image tab:

 1. Disable Flash

 2. Click 'Add Image'

 3. Browse, select an image file, Ok

 4. Click 'Upload'

 5. The file uploads but returns with "Specified file failed upload test."

 Reason: media_handle_upload() gets called twice, from both
 media_upload_image() and media_upload_form_handler().  The first one
 succeeds, the second causes the error because the file has been moved.

 Removing the block of code as per the enclosed patch seems to fix it. That
 code appears to be unused - at least I can't find anything that breaks as
 a result of removing it.

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


More information about the wp-trac mailing list