问题
I choose the file using browse in the file input in IE11
I deleted the file using shift+delete in the Explorer
Then when I refresh the folder, the file that I deleted reappear again in Explorer.
Is there anyway that I can release the file handle by at the client side javascript? I tried that test in IE 8 but that issue didn't occurred.
Any kind help is appreciated.
回答1:
I could release the file handler as following in IE 11.
document.getElementById("fileToUpload").value=""; // input file field
document.getElementById("uploadForm").reset(); // form that containing input file field
来源:https://stackoverflow.com/questions/35055123/ie-11-lock-the-file-when-using-html-input-file-tag