downloadFolder( )

Returns a download URL for downloading a folder from the Media Manager.

The downloadFolder() function returns a Promise that resolves to a download URL for a Media Manager folder's files and sub-folders.

A compressed file is created and can be downloaded using the download URL. The compressed file can contain up to 1000 files. Sub-folders are included. The name of the top-level folder requested for download isn't included.

Call the function with the returned download URL as the external web address. This opens the Download bar in your browser.

This function provides a permanent URL for downloading a folder. To get a temporary download URL for a single file, use the getDownloadUrl() function.

Method Declaration
Method Parameters

The ID of the folder to download. You can get the ID with the folderId property of the listFolders() function.

Return Type:Promise<string>
Was this helpful?