---
title: fluentform/file_type_options
description: "## Description  This filter returns the file type option for the upload field. Using **fluentform/file_type_options** you can add more file types that are not supported by default. ```php apply_filters('fluentform/file_type_options', $fileTypeOptions); ``` ## Usage   ```php add_filter('fluentform/file_type_options', function ($types) { $types[] =…"
url: "https://fluentforms.com/docs/fluentform_file_type_options/"
updated: "2023-07-21"
category: Filter Hooks
---

# fluentform/file_type_options

## Description 

This filter returns the file type option for the upload field. Using **fluentform/file_type_options** you can add more file types that are not supported by default.

```php
apply_filters('fluentform/file_type_options', $fileTypeOptions);
```

## Usage  

```php
add_filter('fluentform/file_type_options', function ($types) {
    $types[] = [
        'label' => __('Autocad Files (dwg)', 'fluentform'),
        'value' => 'dwg',
    ];
    return $types;
});
```

## Parameters

- **$types** (array) File Types

## 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 *app/Services/FormBuilder/ValidationRuleSettings.php*
