title: HTML Allow Same File Name Upload
body: <p>I have a simple HTML file upload input:</p>
  
  <pre><code>&lt;input name="ImageFile" id="imageInput" type="file" accept=".jpg, .jpeg" /&gt;
  </code></pre>
  
  <p>I want to allow the same file name to be uploaded in a row. For example,</p>
  
  <p>First I upload an image, and then I see it displayed and decide it's not how I like it so I open it up in photoshop (or another photo editor) and I make some changes. Now I want to re-upload it. </p>
  
  <p>With this current input field I can not do that. I must either:</p>
  
  <p>a.) change the name</p>
  
  <p>or</p>
  
  <p>b.) have a way to clear the input field before reuploading</p>
  
  <p>What I want to happen is to have the upload field clear the existing file thus allowing the same file to be uploaded without conflict. Or if HTML has an attribute that allows the same file to be uploaded again (and have the updated changes that were made in photoshop).</p>
  
  <p>I do not want my users to manually clear the input by pressing an x button for several reasons.</p>
  
  <p><strong>Note:</strong> I can not clear the file input on pop up of the select box because if they press cancel it will still remove the image. I know I can avoid this by saving the image before removing it but this seems like a very ugly hack.</p>
  
  <p>Can anybody help me out with this? Is there a simple hack/work-around or is this not possible?</p>