Title: media_upload_form_url
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘media_upload_form_url’, string $form_action_url, string $type )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/media_upload_form_url/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/media_upload_form_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/media_upload_form_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/media_upload_form_url/?output_format=md#changelog)

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

Filters the media upload form action URL.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/media_upload_form_url/?output_format=md#parameters)󠁿

 `$form_action_url`string

The media upload form action URL.

`$type`string

The type of media. Default `'file'`.

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

    ```php
    $form_action_url = apply_filters( 'media_upload_form_url', $form_action_url, $type );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/media.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/media.php#L2366)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/media.php#L2366-L2366)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/media_upload_form_url/?output_format=md#related)󠁿

| Used by | Description | 
| [media_upload_type_form()](https://developer.wordpress.org/reference/functions/media_upload_type_form/)`wp-admin/includes/media.php` |

Outputs the legacy media upload form for a given media type.

  | 
| [media_upload_type_url_form()](https://developer.wordpress.org/reference/functions/media_upload_type_url_form/)`wp-admin/includes/media.php` |

Outputs the legacy media upload form for external media.

  | 
| [media_upload_gallery_form()](https://developer.wordpress.org/reference/functions/media_upload_gallery_form/)`wp-admin/includes/media.php` |

Adds gallery form to upload iframe.

  | 
| [media_upload_library_form()](https://developer.wordpress.org/reference/functions/media_upload_library_form/)`wp-admin/includes/media.php` |

Outputs the legacy media upload form for the media library.

  |

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

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

## User Contributed Notes

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