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

The Media Manager allows Wix users to select one or more of the site's media files.

Method Declaration

Copy

Parameters

NameTypeDescription
optionsOptionsOptional for the Media Manager.

Options object

NameTypeDescription
categorystringOptional. 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.
multiSelectbooleanOptional. 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 objects for the selected media files.

Copy

Examples

Note: To call this method in self-hosted apps, you need to create a client. See the setup guide for more details.

Open a media manager modal

Copy
Did this help?