MediaManager
The mediaManager
module contains functionality for working with
the media that is stored in your site's Media Manager. Learn more.
Additional information about this section
Perform actions on an object
- downloadFiles( )
Returns a download URL for downloading files from the Media Manager.
- downloadFolder( )
Returns a download URL for downloading a folder from the Media Manager.
- getDownloadUrl( )
Gets a temporary download URL with a token for a specified file in the Media Manager.
- getFileInfo( )
Gets a file's information from the Media Manager by fileUrl.
- getFileUrl( )
Deprecated. This function will continue to work, but a newer version is available. Use the getDownloadUrl function instead.
- getFolderInfo( )
Gets a folder's information from the Media Manager by folderId.
- getUploadUrl( )
Gets an upload URL for uploading a file to the media manager.
- getVideoPlaybackUrl( )
Gets a video file's playback URL from the Media Manager.
- importFile( )
Imports a file to the Media Manager from a URL.
- listFiles( )
Gets a list of files from the Media Manager by parentFolderId (or root).
- listFolders( )
Gets a list of folders from the Media Manager by parentFolderId (or root).
- moveFilesToTrash( )
Moves single or multiple files to the Media Manager's trash.
- moveFoldersToTrash( )
Moves single or multiple folders, including their files and sub-folders, to the Media Manager's trash.
- upload( )
Uploads a file to the Media Manager from a buffer.