Understanding <input type=“file”>
问题 I am trying to get my head around and using the selected image in a website. Let's say I have a simple website that lets the user select an image from their system using: <input type="file" id="userImage"> Then in the JavaScript I can do this to get the file: var userImage = document.getElementById('#userImage').files[0]; Questions: 1) Can I now use userImage? Such as drawing it on a canvas, or do I need to uploaded it to the websites server first? 2) If I use the image, does the website have