You cannot select and upload the same file except in Firefox, which mistakenly allows you to do so:
Here's my approach to resolve the issue. I wonder if there's a neater way to achieve it.Code:<input type="file" id="fileChooser"> document.getElementById('fileChooser').onchange = function () { alert('Uploaded!'); };
Bookmarks