I'm trying to add a multi-file upload (with SWFUpload, obviously) form to a regular form that I'm using on my site. I can't figure out the following though:

For each file in the queue that was successfully uploaded, I want the file name to be stored in a hidden input field. There's only one hidden input, so the file names have to be appended each time.

Also, I'm saving the file on the server with a new, generated name.

So, say a user is uploading File-1.jpg, File-2.jpg and File-3.jpg after the queue has uploaded successfully i want the hidden input field to contain the following:

"file1-name-as-storedonserver.jpg, file2-name-as-storedonserver.jpg, file3-name-as-storedonserver.jpg"

I was looking through the forums and dug a bit through the sample code but couldn't find the right starting point yet. Any help would be greatly appreciated!