Search code examples
iphonehtmlcordovasmartphone

Uploading Image from smartphone using HTML5 and JS


Is it possible to upload an image from a smartphone's library, like iPhone, using HTML5 and JS? I'm working on an HTML5 site and I need to let the user upload images using a standard form and multipart. I heard that the Phonegap API supports such a functionality, but the question is, is that possible without using wrappers and a native app?

Thanks in advance.


Solution

  • Not in a browser, no. The Phonegap API will not work in a web site loaded in a browser. It requires the Java side of the app to work, and thus a full Phonegap application.