javascript - IE upload same file with angular file uploader -


i using angular , have simple file upload input on page. in ie, cannot upload same file twice in row because onchange not triggered since file name same. have tried several different ways set value null or blank not seem help.

html:

<input id="frontfileselect" type="file" class="ng-hide" onchange="angular.element(this).scope().getfrontimage(files); this.value = null; return false;" ng-accept="'*.pdf,*.jpg,*.png,*.tif,*.tiff'" ng-multiple="false" /> 

i have tried adding:

onclick="this.value = null;" , onclick="this.value = '';" 

like:

<input id="frontfileselect" type="file" class="ng-hide" onclick="this.value = null;" onchange="angular.element(this).scope().getfrontimage(files); this.value = null; return false;" ng-accept="'*.pdf,*.jpg,*.png,*.tif,*.tiff'" ng-multiple="false" /> 

i have tried adding code in controller reset value:

angular.element(document.queryselector('#frontfileselect')).val(''); 

nothing seems work.. ie has same value file name. seems common problem have tried of proposed solutions find , nothing works. ideas?


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -