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)?
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)?
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:
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.