---
title: fluentform/default_upload_path
description: "## Description  This filter returns the file upload path. ```php apply_filters('fluentform/default_upload_path', $file, $originalFileArray, $this->formData, $this->form); ``` ## Usage   ```php add_filter('fluentform/default_upload_path', function ($filePath, $form) { return $filePath; }, 10, 4); ``` ## Parameters - ****$filePath****(str)File path - ****$form****(object)Form Object ## Placement…"
url: "https://fluentforms.com/docs/fluentform_uploaded_file_name/"
updated: "2023-07-21"
category: Filter Hooks
---

# fluentform/default_upload_path

## Description 

This filter returns the file upload path.

```php
apply_filters('fluentform/default_upload_path', $file, $originalFileArray, $this->formData, $this->form);
```

## Usage  

```php
add_filter('fluentform/default_upload_path', function ($filePath, $form) {

    return $filePath;
}, 10, 4);
```

## Parameters

- ****$filePath****(str)File path
- ****$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)
