javascript - save and display image captured from input type=file -


i have webpage capture image available camera feature. web version places video capture onto canvas. phone, using <input class="btn btn-info" type="file" accept="image/*" id="cameracapture" capture="camera"> capture picture. asks user either capture image using phone's camera or upload filesystem/gallery etc. once image clicked places image's name next button. there way access image , display in same page.

thanks in advance

you can js using filereader object.

take @ answer: preview-an-image-before-it-is-uploaded

i hope helps


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -