---
title: fluentform/default_upload_path
description: "Using this filter you can change the file upload directory of fluentforms default file upload location. ```php apply_filters('fluentform/default_upload_path', $path, $form); ``` ## Usage   ```php add_filter('fluentform/default_upload_path', function ($path, $form) { return wp_upload_dir()['basedir'].'/test'; }, 10, 2); ``` ## Parameters - **$path** (string)…"
url: "https://fluentforms.com/docs/fluentform_default_upload_path/"
updated: "2023-07-21"
category: Filter Hooks
---

# fluentform/default_upload_path

Using this filter you can change the file upload directory of fluentforms default file upload location.

```php
apply_filters('fluentform/default_upload_path', $path, $form);
```

## Usage  

```php
add_filter('fluentform/default_upload_path', function ($path, $form) {
    return wp_upload_dir()['basedir'].'/test';
}, 10, 2);
```

## Parameters

- **$path** (string) Upload 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

This filter is located in FluentFormPro\src\Uploader -> copyToDefault($files)
