javascript – IE 11在使用HTML input = file标签时锁定文件

  1. I choose the file using browse in the file input in IE11

  2. I deleted the file using shift+delete in the Explorer

  3. 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
点赞