admin管理员组

文章数量:1356771

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/

本文标签: javascriptHow do I upload a file from iOS to my websiteStack Overflow