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

javascript - input type=file not working in iOS - Stack Overflow

programmeradmin4浏览0评论

I am developing application for iOS using phonegap.I want to upload my local files like image, songs, videos present on the device to the server. For this I have used <input type="file"> for the browsing the file hierarchy . Its working fine on the browser but when I am running this on iPad choose File button getting disabled.I have googled lot for this problem but not able to find an appropriate solution.Does above tag support in iOS ? if not then what is the solution to browse and upload the file in iOS?

I am developing application for iOS using phonegap.I want to upload my local files like image, songs, videos present on the device to the server. For this I have used <input type="file"> for the browsing the file hierarchy . Its working fine on the browser but when I am running this on iPad choose File button getting disabled.I have googled lot for this problem but not able to find an appropriate solution.Does above tag support in iOS ? if not then what is the solution to browse and upload the file in iOS?

Share Improve this question asked Oct 11, 2012 at 6:28 V-XtremeV-Xtreme 7,3339 gold badges40 silver badges80 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 12

Arbitrary file upload is not supported on iOS. The tag used to be ignored up to (and including) iOS 5.x.

Starting with iOS 6, this tag allows the user to add a photo from the photo stream or the camera ("take new photo"). All of this will be handled behind the scenes by the browser and the user will never see a real low-level "choose file" dialog.

发布评论

评论列表(0)

  1. 暂无评论