File Uploads: Allow users to delete uploaded files using the edit submission link.

  • fireproofsocks
    Asked on September 23, 2017 at 10:57 PM

    We have set up a nice multi-page form that collects multiple files from a user.  We are using the {edit_link} macro in the emails so the users can return to the form to edit their data after submission per the tip found here.

    However, when a user does this, there does not seem to be any way to DELETE the uploaded files.  There are a couple quirks to this behavior:

    1. If a file field is set to "Multiple: OFF", then there's nothing you can do it seems.  There's no "X" or "Delete" functionality anywhere.  The best that a user can do is to upload a new file in place of the old file.

    2. Only if a file field is set to allow multiple files is there an option when the user edits the form to x-out (i.e. remove) some of the files.

    (this is the behavior observed when the form is integrated with Google Spreadsheets for submissions and Google Drive for file uploads).

    The bugs observed are that images cannot be removed at all unless the form field allows for for multi-file uploads (which is a bit of an awkward workaround).  Second, sometimes when clicking on the "edit form submission" link, a user sees plain text under those file fields with a URL to the form-author's JOT account somewhere (?).  

    Third, even if no files were changed, e.g. if the user only corrected a typo in a text field, re-submitting the form uploads another copy of the file to our Google Drive.

    Hope someone has some advice for this (our form is not yet public).  Thanks!

  • Kevin Support Team Lead
    Replied on September 23, 2017 at 11:31 PM

    I will open a request for the ability to delete uploaded files while allowing single files as you're right, there is not any way to delete already uploaded files until you turn on the multiple files option on your field. 

    Second, sometimes when clicking on the "edit form submission" link, a user sees plain text under those file fields with a URL to the form-author's JOT account somewhere (?)

    I have been testing using the edit link of multiple forms on my account and was unable to replicate the issue, may you please provide us an example about how it looks or a submission example so we can further investigate it? 

    Third, even if no files were changed, e.g. if the user only corrected a typo in a text field, re-submitting the form uploads another copy of the file to our Google Drive.

    This has been moved to a different thread, we will assist you as soon as possible here: https://www.jotform.com/answers/1256063