[wp-trac] [WordPress Trac] #8557: Uploader: submit via enter/return different than submit via button

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 10 14:10:37 GMT 2008


#8557: Uploader: submit via enter/return different than submit via button
------------------------+---------------------------------------------------
 Reporter:  abackstrom  |       Owner:       
     Type:  defect      |      Status:  new  
 Priority:  normal      |   Milestone:  2.7.1
Component:  Upload      |     Version:       
 Severity:  normal      |    Keywords:       
------------------------+---------------------------------------------------
 Upload a file, then navigate down to the file information that appears
 below the "Select Files" button. If you submit the form by pressing enter
 (return) in one of the text fields, the "From Computer" tab redisplays
 with the error message "No file was uploaded." If you submit the form via
 the "Save all changes" button, the "Gallery" tab is shown. I would say the
 latter is the expected behavior.

 In Firefox, submit via "enter" uses the first submit button, which happens
 to be the HTML uploader, hence the "no files uploaded" message. The quick
 fix is to make a hidden copy of the "Save all changes" button just after
 the <form> tag. I'm sure someone else can come up with a more elegant
 solution. =)

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


More information about the wp-trac mailing list