Renaming uploaded files according to a field or save to a new folder
-
This is a wonderful plugin. I have two questions I would like your help with.
I found two thread on this topic but suggested solutions don’t work. I believe a hook mentioned in the first one is either deprecated or renamed.
I also couldn’t find file upload hooks on the developer API documentation page.For the second thread, the code doesn’t seem to be working but I do not know exactly why. I am using a snipped plugin instead of the mu folder and I get an error “Syntax error, unexpected ‘public’ (T_PUBLIC), expecting end of file.”
Rename uploaded files after form field
File Upload field – Specify folder
I would need either or both of the following to have an optimized solution:
1. Field {text-1} is a case ID in a form (1988) and its value should be appended to the uploaded file name, preferably with the random string that is being appended by default.2. Uploaded files should be uploaded into a new folder (inside Forminator upload folder – custom folder changed in plugin settings), with each having a name pulled from {text-1} field.
I am looking forward to your reply. Thanks.
- The topic ‘Renaming uploaded files according to a field or save to a new folder’ is closed to new replies.