javascript – IE 11在使用HTML input = file标签时锁定文件
作者:互联网
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.
反正我是否可以在客户端javascript发布文件句柄?我在IE 8中尝试过该测试,但没有发生这个问题.
任何帮助表示赞赏.
解决方法:
我可以在IE 11中释放文件处理程序,如下所示.
document.getElementById("fileToUpload").value=""; // input file field
document.getElementById("uploadForm").reset(); // form that containing input file field
标签:javascript,internet-explorer-11 来源: https://codeday.me/bug/20190702/1355923.html