[wp-trac] [WordPress Trac] #20923: Add support for mobile uploads

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 12 18:48:22 UTC 2012


#20923: Add support for mobile uploads
--------------------------------+--------------------
 Reporter:  koke                |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  3.4.1
Component:  Media               |     Version:  3.4
 Severity:  normal              |  Resolution:
 Keywords:  mobile needs-patch  |
--------------------------------+--------------------

Comment (by koke):

 Replying to [comment:5 azaozz]:
 > You mean checking `navigator.userAgent` vs.
 `$_SERVER['HTTP_USER_AGENT']`? Thinking that by the time iOS6 is released
 there will be definite differences / easy way to detect it in both UA
 strings.

 No, more like

 {{{
 var file_test = document.createElement("input");
 file_test.setAttribute("type", "file");
 if (file_test.disabled === false) {
 // Supports upload
 } else {
 // Doesn't support upload
 }
 }}}

 I've only tested it on iOS and Chrome so far, but that was the idea

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20923#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list