最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How do I upload a file from iOS to my website? - Stack Overflow

programmeradmin1浏览0评论

I have a website that receives files from the user, using the "Choose file" interface for the OS they're on. This worked for me on Windows, Mac and Linux, but not on iOS. When I click the button that should load the interface, nothing happens. I guess I have to do it in a specific way for iOS. We're using the ZK framework to develop the website, but if you know how to do the upload in some other way, please tell me.

I have a website that receives files from the user, using the "Choose file" interface for the OS they're on. This worked for me on Windows, Mac and Linux, but not on iOS. When I click the button that should load the interface, nothing happens. I guess I have to do it in a specific way for iOS. We're using the ZK framework to develop the website, but if you know how to do the upload in some other way, please tell me.

Share Improve this question asked May 19, 2012 at 3:47 KilokuKiloku 5633 gold badges8 silver badges18 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

Up to iOS version 5.X, there is no possibility to upload a file via an html input tag. You would have to create a native App based on PhoneGap/Cordova to have the ability to create images/videos to be uploaded. But that's quite some effort to do. You should definitely think about the following option:

Since iOS version 6.0 Apple has added support for input type file elements. See more details on that here: http://www.mobilexweb./blog/iphone-5-ios-6-html5-developers

This way seems to be appropriate, since the adoption rate of iOS 6 is quite high right now (nearly 80%): http://david-smith/iosversionstats/

发布评论

评论列表(0)

  1. 暂无评论