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

get_media_file

Return the file information and the download URL of a media file by its path.

list_media_folder_content

List the direct content of a media folder. Omit the path for the root folder.

search_media

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_media_file

Upload a file to a media folder. An empty path is the root folder. Pass sourceUrl to upload a file from a URL. For a local file, omit sourceUrl and run the returned curl command. See File uploads.

upload_media_zip

Extract a ZIP file into a media folder. An empty path is the root folder. Pass sourceUrl to upload a file from a URL. For a local file, omit sourceUrl and run the returned curl command. See File uploads.

delete_media_file

Delete a media file. Pass the full path, including the file extension. To find the path, use search_media.

delete_media_folder

Delete a media folder and everything in it. Pass the folder path with a trailing slash. To find the path, use search_media.

Was this page helpful?

What made the biggest difference for you?
What went wrong? (Your feedback helps us fix it.)

Please don't include personal or sensitive data.