Description #
Using this filter you can change the upload directory of the temporary file upload location. It is not recommended to change this unless you completely understand how it works.
apply_filters('fluentform/file_upload_params', $param, $this->formData, $this->form);
Usage #
add_filter('fluentform/file_upload_params', function ($param, $formData, $form) {
// do your stuff
return $param;
}, 10, 3);
Parameters #
- $param (array) Upload Parameters
- $formData (array) Form Data
- $form (object) Form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
apply_filters(‘fluentform/default_upload_path’, $filePath, $this->form);
This filter is located in FluentFormPro\src\Uploader -> copyToDefault($files)