I want the user to either take a picture from webcam or upload photo. If he chooses to take a picture, It should load in uploadedFile. I dont know even if this is possible at all. I am open to suggestions.
//I have an image
<img id="photo"> // I am getting this from webcam
//And I have an input of type file upload
<input type="file" name="uploadedFile" id="uploadedFile" accept="image/*">
// Now this image data in photo should go to uploadedFile. Is it possible?