I stumbled upon this answer , which is brilliant:
In iPhone iOS6 and Android ICS onwards, HTML5 has the following which allows you to take pictures from your device:
<input type="file" accept="image/*" capture="camera">
Capture can take on values ββsuch as camera, camcorder, and audio.
Is it possible to take another step using ajax to immediately upload a photo after taking it?
For example, using my phone, as soon as I click on the input, it opens a camera that will immediately allow me to take a picture and save it. When I save it to the camera, it is then displayed with the enter button as a file to upload.
What is needed to download this photo immediately, and not for the user to click the "Submit" form?
javascript html5 web-applications mobile forms
micah Jun 21 '13 at 18:09 2013-06-21 18:09
source share