I am trying to add multiple file upload feature to a form. I am wondering if there is a way to upload the files before submitting the form and them when the form is submitted and the data inserted into the database, the files get uploaded to the designated folder.
I am trying to do this way in order to minimize the load on the server.
In short I want to store files to a temporary location, and when the form is submitted they get moved to the designated folder.
I am concern about the logic of it more than the code itself.