Question

I have a PhoneGap built HTML app, which has an iFrame through to a web system

One page of this system is a very simple file upload using

< input type="file"> etc...

In a webOS environment this works perfectly, however in PhoneGap build clearly the

<input type="file"> doesnt work.

I am searching - somewhat desperately - for a solution, where I can change the

<input type="file">

to something to make it work. Simplicity is key here as the iframe points to a very complex existing system which I am reluctant to make any major changes too.

Thank you in advance for all your help

Regards

Henry

Was it helpful?

Solution

At least for me, the input file doesn't work in Phonegap.

You need use the Phonegap API to get picture and select the source where come from, like photolibrary, camera or savedphotoalbum.

See more info about camera.getPicture: http://docs.phonegap.com/en/2.1.0/cordova_camera_camera.md.html#camera.getPicture and about Camera.PictureSourceType parameter of cameraOptions method: http://docs.phonegap.com/en/2.1.0/cordova_camera_camera.md.html#cameraOptions

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top