Actions24
Media → Create Folder
AI-generatedSummary
Create a new media folder within a specified parent directory on the Joomla site.
Inputs
- Parent Folder (required) — The parent folder path where the new folder will be created (e.g., "images").
- Folder Name (required) — The name of the new folder to create inside the parent folder.
- Ignore If Exists — Option to ignore an error if the folder already exists, causing the operation to succeed without creating a new folder.
Output shape
a JSON object representing the API response or a success message if the folder already exists and 'Ignore If Exists' is enabled.
If the 'Ignore If Exists' option is true (default), the operation returns success even if the folder already exists; otherwise, it may throw an error. The folder path used is constructed as 'local-images:/[Parent Folder]/[Folder Name]'. The operation is executed via a POST request to the Joomla media files API endpoint.
Examples
Example 1: Create a new folder named 'new-folder' inside the 'images' directory, ignoring if it already exists.
Set 'Parent Folder' to 'images', 'Folder Name' to 'new-folder', and keep 'Ignore If Exists' enabled.