No Code Attached Yet bug
avatar brianteeman
brianteeman
10 Aug 2025

On a clean install of joomla the tinyMCE location for drag and drop images is left blank and it should default to save the drag and dropped images in /images

Since the addition of /files with #43532 the drag and dropped images are saved in the /files folder

cc @Fedik

avatar brianteeman brianteeman - open - 10 Aug 2025
avatar joomla-cms-bot joomla-cms-bot - change - 10 Aug 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Aug 2025
avatar Fedik
Fedik - comment - 10 Aug 2025

That because when the upload path is empty in TinyMCE configuration then global Media ProviderManagerHelper is defaulting to files (previously was images):

// Check for default path in Media config, and whether associated account exists, and use it as default adapter.
$defaultFilePath = ComponentHelper::getParams('com_media')->get('file_path', 'files');
$defaultAdapter = $this->getAdapter('local-' . $defaultFilePath);

We need to check for default folder in the plugin

$uploadPath = $levelParams->get('path', '');

to something like:

$defaultPath = ComponentHelper::getParams('com_media')->get('image_path', 'images');
$uploadPath  = $levelParams->get('path', $defaultPath);

I will check later, if no one else will be faster :)

avatar Fedik Fedik - change - 10 Aug 2025
Labels Added: bug
avatar Fedik Fedik - labeled - 10 Aug 2025

Add a Comment

Login with GitHub to post a comment