javascript - Check if image is uploaded from camera or gallery in mobile browser -


i having code:

<input id="video-selector" type="file" name="files[]" accept="video/*,image/*" capture="camera" > 

i need check whether image taken camera or gallery. there way so. or there option restrict upload gallery.

i assume want make sure user taking "fresh" photo.

i don't think there's way restrict choosing images gallery. alternative solution be: make sure photo taken in recent few seconds (e.g. 60 seconds).

there "original date" property in exif info won't changeable on phones. can access exif tags javascript of exif-js.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -