Returns a download URL for downloading files from the Media Manager.
The downloadFiles()
function returns a Promise that resolves to a download URL
for the specified file(s) in the Media Manager.
A compressed file is created and can be downloaded using the download URL. The compressed file can contain up to 1000 files.
Call the wix-location.to()
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 one or more files.
To get a temporary download URL for a single file, use the getDownloadUrl()
function.
Note: The downloadFiles()
function only allows you to download files with supported media types, and files that are explicitly listed in the Media Manager. Files with unsupported media types such as 'model', and files that aren't explicitly listed in the Media Manager such as default files in a gallery component, can't be downloaded using the downloadFiles()
function. The supported media types are listed in the description for the mediaType
return in the getFileInfo()
function.
A list of URLs for the file(s) to download. You can get the URLs with the
fileUrl
property of the listFiles()
function.