I am working on trying to make a prompt where you can upload an image and save it on localStorage, but I couldn't find a way of doing this without PHP, which I don't want to use. Is there any way I can do this without PHP?
function upload() {
//script to display the dialog box and enter the name of the file in the h4 element.
}
<button onclick="upload()">Upload File</button>
<h4 id="fileName">No File Selected</h4>