Retrieves a list of files in the Media Manager.
To retrieve a list of files within a specific folder in the Media Manager, specify the folder's ID in the parentFolderId
parameter. If no folder is specified, the method retrieves the list of files in the root folder of the Media Manager.
function listFiles(options: ListFilesOptions): Promise<ListFilesResponse>;
Options to use when listing media files.
import { files } from "@wix/media";
async function listFiles(options) {
const response = await files.listFiles(options);
}
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.