I'm trying to upload a file and convert that file to its data-uri counterpart without needing any sort of back-end, but I'm stuck at trying to figure out how to actually get the uploaded file.
document.getElementById("myInput").files[0]
allows me to access some information, but not the actual file. There's the file api, but I can't find much documentation about how to use it, just that it exists.
Is there any way to do this entirely in the browser?