I have the code to upload one file, or multiple files at once. I need to display a page where the user chooses a file to upload and the name is shown, then chooses another etc .... then at the end when the form is submitted all files are uploaded.
The problem is I don't know how to dynamically add the upload rows, as it needs to be limitless. :
The only thing I can think of is to add the file chosen to an array and actually resubmit the form to the same page after every file is chosen showing the names of all the files already in the array.
There has to be a better/easier way (if what I'm thinking of would even work).
Anyone have any idea?