---
title: fluentform/file_upload_params
description: "## 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. ```php apply_filters('fluentform/file_upload_params', $param, $this->formData, $this->form); ``` ## Usage   ```php…"
url: "https://fluentforms.com/docs/fluentform_file_upload_params/"
updated: "2023-07-21"
category: Filter Hooks
---

# fluentform/file_upload_params

## 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.

```php
apply_filters('fluentform/file_upload_params', $param, $this->formData, $this->form);
```

## Usage  

```php
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](http://codex.wordpress.org/Theme_Development#Functions_File) 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)
