A SnippetClub member wanted a way to change the upload file path and name of the file that gets uploaded with Fluent Form.
Fluent forms has some handy hooks that we can use to achieve this.
Changing file upload path
Add the code below to your functions.php
or code snippet plugin.
The two important lines in our snippet are line 2 and 7.
Line 2
– ID of your formLine 7
– Path to your file