I am new to angular, and I am implementing the ng-file-upload directive. Can someone please show me how to clear the file input after the upload is successful?
I've tried a number of solutions online, and the only one I've managed to make it sort of working is with Jquery: input.replaceWith(input.val('').clone(true));
However, this only seem to clear it by appearance, I am still able to upload the supposedly cleared file if I try to submit again.
If someone could help me out that would be great.