searchFiles( )


Searches all folders in the Media Manager and returns a list of files that match the terms specified in the optional parameters.

The searchFiles() function returns a Promise that resolves to an array of the specified files' descriptors and cursor information.

If no parameters are specified, the function returns all files in the MEDIA_ROOT folder.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings Services and Settings
Manage Media Manager
Read Media Manager
Manage Portfolio
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsSearchFilesOptions

Options to specify which folders to search.

Returns
Return Type:Promise<SearchFilesResponse>
Did this help?