angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

can not select the same file in ieBrowser

Open weixiaotao opened this issue 8 years ago • 5 comments

For example, in the official example given,

The first selection of the file is not uploaded and removed directly.

The second selection of the same file cannot be repeated in ie10. (在ie10浏览器上,上传文件,第一次选择后不上传直接删除第二次在选择同一个文件无法选中 或者第一次选择文件后直接上传,在选择同一个文件也无法选中)

weixiaotao avatar Sep 01 '17 05:09 weixiaotao

even on chrome I have the same problem

hesampour avatar Oct 16 '17 07:10 hesampour

document.getElementById("uploadInput").value = "";

hold-baby avatar Oct 19 '17 09:10 hold-baby

不止IE,谷歌一直有这个问题,所以我刚刚才有反馈了,很奇怪,为什么不在源码那边选择文件的时候,自动把对应的input的value给清掉的,搞的我都想去改他的源码...一直不明白为什么会留着这么明显的一个问题?是出于什么目的这样子做的

lixiangyue avatar Nov 22 '17 08:11 lixiangyue

// To select same file again if we had select and remove and again want to select FileUploader.FileSelect.prototype.isEmptyAfterSelection = function () { return true; // true|false };

jayprajapati857 avatar Mar 19 '18 09:03 jayprajapati857

thank you!I will try it

------------------ Original ------------------ From: "Jaykumar Prajapati"; Date: 2018年3月19日(星期一) 下午5:31 To: "nervgh/angular-file-upload"; Cc: "weixiaotao"; "Author"; Subject: Re: [nervgh/angular-file-upload] can not select the same file inieBrowser (#795)

// To select same file again if we had select and remove and again want to select FileUploader.FileSelect.prototype.isEmptyAfterSelection = function () { return true; // true|false };

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

weixiaotao avatar Mar 20 '18 01:03 weixiaotao