GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

Upload fields don't store new uploads properly when there are validation errors

Open zackkatz opened this issue 8 years ago • 7 comments

Context: The Edit Entry screen with any required field and a file upload field. If the user selects a file and submits the form while a required field is empty, the update will fail (as expected). However, when the page reloads, the file upload input isn't cleared. That leads to confusion as the file isn't available anymore and must be uploaded again to be saved:

To reproduce:

Single File Upload Field:

This issue exists in 1.19.4

  1. Upload a file
  2. Enter an error in a field
  3. Save the form
  4. The file appears uploaded
  5. Submit the form again
  6. The file is no longer there

Multiple File Upload Field:

This issue does not exist in 1.19.4

  1. Upload file
  2. Enter an error in a field
  3. Save the form
  4. The file is no longer there

Links to examples:

Video: https://monosnap.com/direct/YbEjhxEoccpX2Kn7ePErSTEWBKreQX

zackkatz avatar Mar 02 '17 00:03 zackkatz

Changes in Product fields are also not stored when there are validation errors.

zackkatz avatar Mar 02 '17 00:03 zackkatz

Ran into this problem today. Seems like GravityView is moving the uploaded files from their temporary home to the GF upload directory before the validation is done, instead of after. So when validation fails, Gravity Forms expects them to still be in the temporary folder and can't find them.

jakejackson1 avatar Nov 27 '20 01:11 jakejackson1

Following this thread in hopes of a fix.

aaronkine avatar Dec 05 '20 17:12 aaronkine

https://secure.helpscout.net/conversation/2155642907/47010

rafaehlers avatar Feb 14 '23 20:02 rafaehlers

Still happening on GFs 2.7.2 and GV 2.17.1

rafaehlers avatar Mar 10 '23 20:03 rafaehlers

https://secure.helpscout.net/conversation/1818398060/40265 https://secure.helpscout.net/conversation/1880675598/41208

rafaehlers avatar Mar 10 '23 20:03 rafaehlers

FreeScout #75264.
https://support.gravitykit.com/conversation/75264?folder_id=1

floatytheastronaut avatar Nov 28 '23 19:11 floatytheastronaut