> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: openMediaManager() ## Article: openMediaManager() ## Article Link: https://dev.wix.com/docs/sdk/host-modules/dashboard/open-media-manager.md ## Article Content: # openMediaManager() > **Developer Preview** > This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period. Opens the Wix Media Manager in a modal. ![Show Media Manager](https://wixmp-833713b177cebf373f611808.wixmp.com/images/79cb079cb406d9614b93a96fc906a88d.gif) The Media Manager allows Wix users to select one or more of the site's media files. ## Method Declaration ```ts (options?: {category?: string; multiSelect?: boolean}) => Promise<{items: FileDescriptor[]}> ``` ## Parameters | Name | Type | Description | |:--------------|:----------|:----------------------------------------------------------------| | `options` | Options | Optional for the Media Manager. | ### Options object | Name | Type | Description | |:--------------|:----------|:----------------------------------------------------------------| | `category` | `string` | Optional. The type of media files to display in the modal. If this value is empty, all media types are displayed.
Supported values: `"IMAGE"`, `"VIDEO"`, `"MUSIC"`, `"DOCUMENT"`, `"VECTOR_ART"`, `"3D_IMAGE"`.
By default, all the categories except `"3D_IMAGE"` are displayed. | | `multiSelect` | `boolean` | Optional. Whether multiple files can be selected.
Default: `false` | ## Returns A promise that resolves to an object with a single key called `items`. The value of that key is an array of [file descriptor](https://dev.wix.com/docs/sdk/backend-modules/media/files/get-file-descriptor.md) objects for the selected media files. ```ts Promise<{items: FileDescriptor[]}> ``` ## Examples > **Note:** To call this method in [self-hosted apps](https://dev.wix.com/docs/sdk/articles/get-started/about-self-hosted-apps.md), you need to create a [client](https://dev.wix.com/docs/sdk/articles/set-up-a-client/about-the-wix-client.md). See the [setup](https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction.md) guide for more details. ### Open a media manager modal ```ts import { dashboard } from '@wix/dashboard'; const chosenMediaItems = await dashboard.openMediaManager({multiSelect: true}); console.log('You have chosen: ', chosenMediaItems.items) ```