Forums

Upload files ONCE

healyhatman 29 Jul, 2017
I have a very large and complicated form that includes 3 file uploads.

When a person attaches a file and it uploads to the server, if there is some validation error later on in the processing they need to reupload the files - and then if there's another error they have to upload again, and again, and again.... each time the form reloads the file field is blank and they have to select their file again and the server gets more and more copies of the same thing.

Is there a way so that they select the file, and if the form reloads because of a validation error they don't have to reupload again? Or at least some way to remember the file selection? Or should I made a "mini form" within my form that will upload the files using AJAX or something?

EDIT: I will be able to have the files all named FirstnameLastname_User-id_Field.extension if that halps
GreyHead 30 Jul, 2017
Hi healyhatman,

I would probably make this a multi-page form and keep the file uploads on their own page - or on a fairly simple page - to avoid this problem.

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