Is it possible to change the file name to the input field name? #934
|
My form-to-email service needs to support multiple files in a form, something like this: When this form is submitted and processed by Formidable those two files will be named whatever the original file names were (ex. it could be something vague like "me.jpg" and "mountains.png"). This makes it pretty difficult to tell which file was submitted for which field when I send them as attachments on an email. Is it possible to rename the files to match their field name such as "avatar.jpg" and "coverPhoto.png" (or even drop the extension)? |
Answered by
justin-harr
Mar 31, 2023
Replies: 1 comment
|
Nevermind I figured it out! The form field name is available under |
0 replies
Answer selected by
justin-harr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind I figured it out! The form field name is available under
partwhen setting a custom file name under thefilenameoptions. So you can rename the file to the field name and keep the extension like this.