Cancel event on input type="file"
<p>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. </p>

<p>I can't find any events that work across all browsers and platforms consistently. </p>

<p>I've read the answers to this question: <a href="https://stackoverflow.com/questions/10127492/capturing-cancel-event-on-input-type-file">Capturing cancel event on input type=file</a> but they don't work, as the change event doesn't fire in most browsers on canceling out of the choose file dialog. </p>

<p>I'm looking for a pure js solution, but open to jquery solutions as well.</p>

<p>Anyone solve this problem successfully? </p>