1

I am using html5 code and trying to open camera using <input type="file">. It's working fine on Android but not on iOS.

How can I access camera from iOS platform using HTML5 (without Phonegap)?

Simon East
  • 55,742
  • 17
  • 139
  • 133
user1667929
  • 11
  • 1
  • 2
  • 4
    possible duplicate of [HTML5 Camera Access Through Browser in iOS](http://stackoverflow.com/questions/6336641/html5-camera-access-through-browser-in-ios) – PiTheNumber Sep 13 '12 at 08:06

2 Answers2

2

You could try this:

<input type="file" capture="camera" accept="image/*" id="cameraInput">

but it has to be iOS 6+ to work.

An example can be found here:

Capturing camera/picture data without PhoneGap

Xeroxoid
  • 2,146
  • 1
  • 17
  • 22
1

iOS currently doesn't support this functionality sorry. Alternatives some web apps are using are things like emailing in with files attached (Basecamp does this) and there is also an app that enables them called Picup which you can suggest users user your app with to use the file upload fields.

FluffyJack
  • 1,732
  • 10
  • 15