Media library
Media library tools browse, search, upload, and delete the files and folders of
the Media Library. Files and folders
are addressed by path, for example, images/logo.png for a file and icons/
for a folder. A folder path ends with a slash.
The media library tools are available from Neptune DXP - Open Edition 25.0.1.
Required access: the Media Library tool (media) in one of your roles. Display
access is enough to read file information, list folder content, and search. Deleting
files and folders requires Edit access. upload_media_file and upload_media_zip
do not check tool access themselves. Your access to the target folder is checked
when the upload starts.
If none of your roles includes this tool with the required access, the tool fails immediately with an access denied error. Contact an administrator to request access, or see Access control for more information on how access is enforced.
Available tools
| Tool | Description |
|---|---|
|
Return the file information and the download URL of a media file by its path. |
|
List the direct content of a media folder. Omit the path for the root folder. |
|
Search media by folder or file name. The search term is not case-sensitive. You can limit the search to a folder and set the maximum number of matches. |
|
Upload a file to a media folder. An empty path is the root folder. Pass |
|
Extract a ZIP file into a media folder. An empty path is the root folder. Pass
|
|
Delete a media file. Pass the full path, including the file extension. To find
the path, use |
|
Delete a media folder and everything in it. Pass the folder path with a trailing
slash. To find the path, use |
Related topics
-
Tools overview: the full list of artifact types and required access.
-
Access control: how role and development package checks are enforced on every tool call.