[wp-trac] [WordPress Trac] #20445: UI issues for failed uploads

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 15 04:53:20 UTC 2012


#20445: UI issues for failed uploads
--------------------------+-----------------------------
 Reporter:  trepmal       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Upload        |    Version:  3.3
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 When uploading a file with a forbidden extension using the multi-file
 uploader, the upload will (of course) fail. But the "crunching" bar
 remains visible, and if the Gallery tab is visible, the attachment count
 is wrongly incremented.

 Will also happen if there are directory permission issues ('cannot write
 to directory', 'uploaded file could not be moved').

 [[Image(http://cl.ly/FqXI/bad-file-type.png)]]

 Screencast showing gallery tab incrementing:
 http://screencast.com/t/EJtWF2kXXBki

 Although the correct error messages are sent from async-upload.php, the js
 (wp-includes/js/plupload/handlers.js) looks for a particular string to
 check if the response is an error, and this string is not present.

 Patch adds the string as an easy fix.

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


More information about the wp-trac mailing list