Save the draft and upload file

creositi 06 Apr, 2018
Hello
I created a multipage form, but I have a problem.
If I click Save the draft, all uploaded files are not saved.
So when the user picks up the draft to finish the build, it needs to load all the files again.
I use Chronoforms v5
GreyHead 06 Apr, 2018
Hi creositi ,

You need to make sure that your Save the Draft button submits the form normally and runs an Upload Files action before the Save Data action.

Bob
creositi 11 Apr, 2018
Grazie per la risposta.
Il file viene anche salvato correttamente nel database.
Tuttavia, il problema rimane: quando l'utente riprende la bozza, il campo UPLOAD è vuoto e obbligatorio, richiede nuovamente di caricare il file.
GreyHead 11 Apr, 2018
Hi creositi,

Well, yes the File Upload element will be empty - what goes there is a path on the user's computer and you do not have that information.

Please see this FAQ - it was written for CFv4 but the same logic applies in later versions, though the code needs to use the CFv6 syntax.

Bob
This topic is locked and no more replies can be posted.