What I did:
* create two page form and enable save draft
* add file type field for file uploads on page 1
* upload file and save draft of submission
* on viewing the draft the file field is now empty, ie the filename of the uploaded file didn't load
* on submission of the form the filename is viewable through admin and by the user when reviewing their submission

Is there a way for the filename of the uploaded file to be loaded into a form that has been saved as a draft? Ordinary users ( and even some extraordinary users) find this confusing and worry that their original file has been lost.

This was tested on a new install of webform module on a site with these modules (admin, admin_menu, pathauto, poormanscron, token, google analytics, wysiwyg).

CommentFileSizeAuthor
#5 webform.6x.patch1.59 KBzbricoleur
#4 webform.patch1.54 KBzbricoleur

Comments

quicksketch’s picture

Thanks for the report. This should be solvable with a little tweaking to our file component handling. Does the link to the file show up properly when going back and forth between pages (without saving as draft)?

timhomewood’s picture

Yes everything else works perfectly. Thanks for looking into this.

zbricoleur’s picture

subscribing

zbricoleur’s picture

Status: Active » Needs review
StatusFileSize
new1.54 KB

patch against HEAD

zbricoleur’s picture

StatusFileSize
new1.59 KB

and patch against the 6.x-3.4 version

[edit] ...sorry, just learning the ropes here, I see I overlooked a naming convention for patches...

quicksketch’s picture

Status: Needs review » Fixed

Looks great, works great. Committed to both 3.x branches. Thanks. :)

Status: Fixed » Closed (fixed)
Issue tags: -file upload save draft

Automatically closed -- issue fixed for 2 weeks with no activity.