Introduction
The Files API allows you to manage files and generate file urls from your Media Manager.
With the Files API, you can:
- Get, list, and search files.
- Import, update, and delete files.
- Restore files from the trash bin.
- Generate URLs for:
Before You Begin
To use the Files API, import { files }
from the wix-media.v2
module:
javascript | Copy Codeimport { files } from 'wix-media.v2';
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?