I have created a PhoneGap based web app some time ago.
Since input type file is now possible on iOS 6, I want to use it and the native File API as well, but keep using PhoneGap to be able to put the app in the Appstore.
BTW: I have found this link, but this does not work: Everytime I access File functionality I get an ERROR from PhoneGap and it basically does nothing.
Update:
In fact getting the file (image) and sending it to the server works fine, but before that I want to resize the image (to reduce file size) by using canvasResize. When the function reader.readAsDataURL(file) is called, I get the following error:
-[CDVJKDictionary pathExtension]: unrecognized selector sent to instance 0x208892b0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CDVJKDictionary pathExtension]: unrecognized selector sent to instance 0x208892b0'
Update 2:
Here is the relevant code that I use:
var reader = new FileReader();
var fileInput = document.getElementById('ideaCommitFileInput');
var file = fileInput.files[0];
reader.readAsDataURL(file);