How am I able to use a file retrieved from a user (for example, an image) using an input that looks like this? --> (<input type="file" id="fileInput">
)
I've tried using
var newFile = document.getElementById("fileInput.value);
but that didn't work. I don't know if there is a Javascript feature that I am not aware of, but according to my research, there is not.
I only want to use HTML, Javascript, and CSS for my webpage, so please only include those languages in your response. Thank You!