I am working with a standard file input for uploads, and I am looking for a way to attach a function to an event when the user clicks/hits enter on the cancel button (or escapes out from) the choose file dialog.
I can't find any events that work across all browsers and platforms consistently.
I've read the answers to this question: Capturing cancel event on input type=file but they don't work, as the change event doesn't fire in most browsers on canceling out of the choose file dialog.
I'm looking for a pure js solution, but open to jquery solutions as well.
Anyone solve this problem successfully?