Body: <p>I've set up a custom file field in CiviCRM and exposed it on a Webform. Uploading a file works fine. Coming back to the form after submitting it, the file field displays a "Change" button instead of a "Remove" button, and clicking it seems to clear out the file. However, the file does not go away.</p>
  
  <p>Is there a step I'm missing on how to delete a file that was previously uploaded through <code>webform_civicrm</code> or is this a bug?</p>
  
  <h1>Screenshots:</h1>
  
  <h2>Before</h2>
  
  <blockquote>
    <p><a href="https://i.sstatic.net/C9dhJm.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/C9dhJm.jpg" alt="Before"></a></p>
  </blockquote>
  
  <h2>After Upload / Before Submission</h2>
  
  <blockquote>
    <p><a href="https://i.sstatic.net/1cKqSm.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1cKqSm.jpg" alt="After Upload"></a></p>
  </blockquote>
  
  <h2>After Submission / Returning to Form</h2>
  
  <blockquote>
    <p><a href="https://i.sstatic.net/7alyom.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7alyom.jpg" alt="After Submission"></a></p>
  </blockquote>
  
  <ul>
  <li><em>On the last step, clicking "CHANGE" will appear to remove the file, but then clicking "Submit" again does not save the removal. Visiting the form again, the file is still there.</em></li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-12T08:34:44.483Z
Comments.Text: Can you share some screenshots of the field input on your webform?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-12T16:35:33.677Z
Comments.Text: @jitendra-fuzion I just added screenshots from the process.
Comments.UserDisplayName: Laryn
Tags: <webform-civicrm><upload>
Title: Removing an uploaded file in a Webform
ThreadText: # Removing an uploaded file in a Webform
  
  (Asked by: username_0 on 2018-04-11)
  
  I've set up a custom file field in CiviCRM and exposed it on a Webform. Uploading a file works fine. Coming back to the form after submitting it, the file field displays a "Change" button instead of a "Remove" button, and clicking it seems to clear out the file. However, the file does not go away.
  
  Is there a step I'm missing on how to delete a file that was previously uploaded through `webform_civicrm` or is this a bug?
  
  # Screenshots:
  
  ## Before
  
  > [![Before](https://i.sstatic.net/C9dhJm.jpg)](https://i.sstatic.net/C9dhJm.jpg)
  
  ## After Upload / Before Submission
  
  > [![After Upload](https://i.sstatic.net/1cKqSm.jpg)](https://i.sstatic.net/1cKqSm.jpg)
  
  ## After Submission / Returning to Form
  
  > [![After Submission](https://i.sstatic.net/7alyom.jpg)](https://i.sstatic.net/7alyom.jpg)
  
  * *On the last step, clicking "CHANGE" will appear to remove the file, but then clicking "Submit" again does not save the removal. Visiting the form again, the file is still there.*
  
  **Tags:** webform-civicrm, upload
  
  > **Comments:**
  > **username_1**: Can you share some screenshots of the field input on your webform?  
  > **username_0**: @jitendra-fuzion I just added screenshots from the process.  
  
  ---
  
  ## 0 answers
  
  