[wp-trac] [WordPress Trac] #10518: Make the post editing form file upload friendly

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 4 09:24:22 UTC 2009

#10518: Make the post editing form file upload friendly
 Reporter:  mark-k          |        Type:  feature request
   Status:  new             |    Priority:  low            
Milestone:  Future Release  |   Component:  Media          
  Version:  2.8             |    Severity:  minor          
 Keywords:                  |  

Comment(by azaozz):

 Yes, there are better ways to handle uploading (perhaps not as simple).

 Replying to [comment:11 Denis-de-Bernardy]:
 > I ask, because I know for a fact that this doesn't:
 > ...
     jQuery(':text').attr('type', 'hidden');

 Yeah, there's no point in trying to set a text field to hidden and the
 otherway round with js. There's no real difference between `type="text"
 style="display: none"` and `type="hidden"` from form functionality point
 of view except that you can show/hide the text field later with js.

 As far as I can see changing the enctype with js works since it's checked
 when the form is submitted not when the page is loading.

Ticket URL: <http://core.trac.wordpress.org/ticket/10518#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list