# zmedia\_choose

Source: https://zotonic.com/docs/1483/zmedia_choose

URI: https://zotonic.com/id/1483

Language: en



Used after a media item is selected in the media chooser for the TinyMCE editor.

Pass the selected resource with the `id` argument. When no arguments are provided, the action reads `media_id` from the triggering form. It then wires `zmedia_has_chosen`, which closes the chooser and sends the selected id to the editor.

This is an internal action used by `_choose_media.tpl`; normal site templates should open the higher-level `zmedia` action instead.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1483?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1483?language=en>)
