# Teams::maybe_handle_team_media_upload()

Handle optional media upload for team create flow.

```php
maybe_handle_team_media_upload( int $team_id, string $field_name, string $meta_key, string $nonce_action, string $nonce_request_key ): void
```

## Parameters

- `$team_id` (int) Team post ID.
- `$field_name` (string) Form file input name.
- `$meta_key` (string) Meta key to store attachment ID.
- `$nonce_action` (string) Nonce action for the current request (see `wp_verify_nonce()`).
- `$nonce_request_key` (string) `$_POST` key holding the nonce value.

## Return

`void`
