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
avatar brianteeman
brianteeman - comment - 21 Aug 2025

@Fedik I tried with your two lines and adding the use statement but it didnt get the path - dont really understand this code so will leave it to you

avatar Fedik Fedik - close - 21 Aug 2025
avatar Fedik
Fedik - comment - 21 Aug 2025

Well, it was a bit more complex than that :)
Please test #45956

avatar Fedik Fedik - change - 21 Aug 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-08-21 14:58:45
Closed_By Fedik

Add a Comment

Login with GitHub to post a comment