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?
1 Answer
Reset to default 12Arbitrary 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.