This PR improves error handling in renameItem() in the Joomla Media Manager. It replaces raw error throws with Joomla notifications, ensuring better user feedback and using Joomla's Notification System Instead of Throwing Errors
Changes Made
Updated renameItem() to use notifications.error() instead of throw new Error(error);
Ensured that errors are properly logged in Joomla’s notification system.
Improve File Exists Handling (Duplicate Files).
Testing Instructions
Open Joomla Media Manager.
Try renaming a file to an invalid name (e.g., same name as an existing file).
You should see an error notification instead of the app crashing.
@richard67 @laoneo can you tell me is there anything that needs to be fixed.