The Files API allows you to manage files and generate file urls from your Media Manager.

With the Files API, you can:

Before You Begin

To use the Files API, import { files } from the wix-media.v2 module:

import { files } from 'wix-media.v2';
javascript | Copy Code

Permissions information

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.

Was this helpful?