Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    197
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Upload the same file

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

    Code:
    <input type="file" id="fileChooser">
    document.getElementById('fileChooser').onchange = function () {
        alert('Uploaded!');
    };
    Here's my approach to resolve the issue. I wonder if there's a neater way to achieve it.
    Last edited by Rain Lover; 06-08-2014 at 10:45 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •