Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone File Upload with HTML

Is there any way to use <input type="file"> in Safari on iPhone/iPod Touch? Or is there something similar that I can use inside the browser? I want to upload a photo from the device to my database using the browser.

like image 997
Sam Williams Avatar asked Apr 25 '11 23:04

Sam Williams


1 Answers

This is possible with iOs 6 or greater (http://www.apple.com/ios/whats-new/#safari). The browser renders

<input type="file">

and clicking on "Choose File" prompts the user to take a new photo or choose existing from the photo library.

like image 165
tie Avatar answered Oct 11 '22 13:10

tie