Title: WP_REST_Request::get_file_params
Published: December 9, 2015
Last modified: May 20, 2026

---

# WP_REST_Request::get_file_params(): array

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#wp--skip-link--target)

Retrieves multipart file parameters from the body.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#description)󠁿

These are the parameters you’d typically find in `$_FILES`.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#return)󠁿

 array Parameter map of key to value.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#source)󠁿

    ```php
    public function get_file_params() {
    	return $this->params['FILES'];
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/rest-api/class-wp-rest-request.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/rest-api/class-wp-rest-request.php#L592)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/rest-api/class-wp-rest-request.php#L592-L594)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/WP_REST_Request/get_file_params/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_rest_request%2Fget_file_params%2F)
before being able to contribute a note or feedback.