This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Generates a temporary URL for downloading the file referenced by a file node in a Ricos document.
Specify the file node's fileData.src.id as fileId. The returned URL downloads the original file
as an attachment and expires after 10 hours. Private files are supported, so you can use this method
to let site visitors download files that aren't publicly accessible.
The method doesn't check whether the file appears in a specific document. Any file of the site can be retrieved by its ID, so control which file IDs you expose to site visitors in your app.
If the file doesn't exist, the method fails with a MEDIA_RESOURCE_NOT_FOUND error.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.