The Files API allows you to manage files and generate file urls from your Media Manager.
With the Files API, you can:
To use the Files API, import { files }
from the wix-media.v2
module:
1
The following functions in Files are restricted and only run if you elevate permissions
using the wix-auth
elevate()
function:
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.