开发者

iPhone File Upload with HTML

开发者 https://www.devze.com 2023-03-01 03:49 出处:网络
Is there any way to use <input type=\"file\"> in Safari on iPhone/iPod Touch? Or开发者_如何学Go is there something similar that I can use inside the browser? I want to upload a photo from the de

Is there any way to use <input type="file"> in Safari on iPhone/iPod Touch? Or开发者_如何学Go 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.


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.


Can't be done with plain XHTML/javascript as Safari does not support uploads. See this previous question for a potential workaround solution to upload photos.


I had the same problem today. The alternative browser iCab Mobile does support file uploads. I got it for my iPad and (at least for me) file upload works fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消