I followed the steps in the docs about how to insert a filename after upload, however I am having problems updating a record to include the uploaded file name.
The file uploads properly in the designated folder, but the filename doesn’t get recorded in the pre-existing record I am trying to update.
I am passing the record id via ‘mediaid’ parameter.
Can you please let me know what I’m missing? thank you.
I’ve also added a condition in the server side Update Query (saw that in another post) - see last screenshot. Not sure what I am doing wrong!
I got this to work. For the benefit of others, here is what I did. I had to include a hidden input field (containing the mediaid) in my file upload form so that it can be posted and used in the DB query as a condition. I previously was trying a URL parameter, but for some reason that didn’t get passed through. (see screenshot).
Further to my question (which I’ve answered) above, is there a way to rename the uploaded file to have the id from the DB (in this case its mediaid) as part of the its filename, using the Template option? recordid{guid}{ext}