Welcome to WebmasterWorld Guest from 50.19.156.133

Forum Moderators: open

Message Too Old, No Replies

Upload the same file

     

Rain_Lover

5:16 am on Jun 8, 2014 (gmt 0)

5+ Year Member Top Contributors Of The Month



You cannot select and upload the same file except in Firefox, which mistakenly allows you to do so:

<input type="file" id="fileChooser">
document.getElementById('fileChooser').onchange = function () {
alert('Uploaded!');
};


Here [jsfiddle.net]'s my approach to resolve the issue. I wonder if there's a neater way to achieve it.

Rain_Lover

5:49 am on Jun 8, 2014 (gmt 0)

5+ Year Member Top Contributors Of The Month



Update

This one seems more semantic to me: [jsfiddle.net...]

Rain_Lover

9:36 am on Jun 8, 2014 (gmt 0)

5+ Year Member Top Contributors Of The Month



Last update:

This one works well in IE11: [jsfiddle.net...]
 

Featured Threads

Hot Threads This Week

Hot Threads This Month