I’ve looked through the documentation and it doesn’t quite do what I want to achieve.
I have a form that has a multi file upload. I send these files to a Server Connect action that then processes them. What I want it to do, that is different to the docs, is save with a GUID and that path is saved to the database BUT I also want the original filename to be saved too so that when I use the file download function in a separate action, I can set the filename back to the original.
The problem I’m having is the in the repeat step that cycles through the upload, the name binding is the GUID set in ‘file upload’ and not the original one so I can’t see how to access it to then save it in the DB.
Hi,
haven’t actually ever used the multiupload but try this.
The idea of saving with GUID is that you are overwrite original file name.
The original file name is actualy held in the post variable that you are sending from the form.
So try this
Save the GUID name in a column
Save the $POST value of the file in another column
This way you will have both names in your database.
Thanks all,
If there are multiple files how do you get the matching name property from $_POST? Will the repeat $index of the file upload always match the $_POST file’s array index?
i.e. would something like this work in the repeat?