1

I have an existing mobile web site on which I would like my users to upload pictures. Since it is not possible in the mobile's web Browser, I would like to know if I could just take the JS file and call the javascript's functions to get the picture taken by the camera for example. Thanks for your help, Julien

Vik David
  • 3,640
  • 4
  • 21
  • 29
user850345
  • 13
  • 4
  • Since this question has been asked a couple things have happened regarding accessing the camera and photos on a mobile device. There's the `type="file"` input that is supported in iOS as well as the `getUserMedia` API. – Jasper Feb 03 '17 at 16:09

4 Answers4

0

You can try putting an and the most new mobile devices would open a dialog and choose of relative apps install on the device from which you can upload files, thus including camera and gallery.

0

No. Accessing the camera requires using native APIs, and thus a native wrapper for your website. The phonegap js file talks to the native wrapper to be able to access those features.

Oiva Eskola
  • 949
  • 8
  • 13
0

Currently only Native applications can access device-specific functionality, like access to the photos gallery...

Leon
  • 4,532
  • 1
  • 19
  • 24
0

Not sure, how this will pan out, but:

"In addition, mobile Firefox supports the latest web technologies like HTML5, CSS, offline storage, and JavaScript, including Javascript access to device capabilities like geolocation, camera, and calling."

Taken from this article

frequent
  • 27,643
  • 59
  • 181
  • 333