PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Files Uploaded are not persisted on form when validation fails

  1. Shauna
    Member

    I have a multi-field form. There are multiple file upload areas on the page. If a users fails to complete all necessary fields but uploads images when the form is returned with a validation error all form upload fields show as if the user didn't completed them. I would like to let the users know a file has been received and not force them to upload it again.

    It doesn't work with normal validation or custom validation. Thanks

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  2. There is no way to pre-populate these fields when an error occurs due to browser security constraints. Browsers don't allow forms and web applications to pre-populate the upload input type. This is for security reasons, if they did, it would allow malicious sites to do this behind the scenes and cause you to upload sensitive files without your consent.

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  3. Shauna
    Member

    Ok. but is there a way for me to hide the upload field and show a label

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  4. Nope. Any files uploaded when validation triggered are temporary and will be cleaned up as part of a clean up process. Files are moved to the final location and fully stored only after the form submission process is fully complete.

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  5. Shauna
    Member

    Ok. Thanks for all your quick responses. It might not be what I wanted to hear but at least I know not to spend anytime trying a work around : )

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink

This topic has been resolved and has been closed to new replies.