leon / angular-upload

Upload service with iframe fallback and some nice directives to go with it.
MIT License
234 stars 100 forks source link

Input file doesn't reset (clear) after upload on server if you upload this file again. #26

Closed biosis21 closed 9 years ago

biosis21 commented 10 years ago

Solutions: document.getElementById("input_file_id").value = ""; or $("#input_file_id").val('')

biosis21 commented 10 years ago

You should be change in formDataTransform factory this snippet: var files = []; angular.forEach(value, function (el) { angular.forEach(el.files, function (file) { files.push(file); }); }); to var files = []; angular.forEach(value, function (el) { angular.forEach(el.files, function (file) { files.push(file); }); el.value =''; });

leon commented 9 years ago

Please submit a pull request