Browse Source

[importer] same file re-upload (#2970)

Ayush Goyal 3 years ago
parent
commit
c6861365d7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 4 - 0
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -3225,6 +3225,10 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
 
 
       $(window).on('resize', resizeElements);
       $(window).on('resize', resizeElements);
 
 
+      document.getElementById('inputfile').onclick = function () {
+        this.value = null;
+      };
+
       document.getElementById('inputfile').onchange = function () {
       document.getElementById('inputfile').onchange = function () {
         upload();
         upload();
       };
       };