No Code Attached Yet bug
avatar particthistle
particthistle
19 Apr 2021

Steps to reproduce the issue

  • System > Site Templates > Select Template
  • Upload a new file
  • Upload the same file a second time

Expected result

In the media manager when you upload a file of the same name, it prompts you if you want to overwrite it or not.

The file upload in the Template manager should also prompt you to overwrite the existing file.

Actual result

In the media manager when you upload a file of the same name, it prompts you if you want to overwrite it or not.

The file upload in the Template manager doesn't prompt you to overwrite, it just throws an error saying file already exists.

Additional comments

May be something to revisit for 4.1 if it's not easily implemented at this time for 4.0.
Noticed while working on #33181

avatar particthistle particthistle - open - 19 Apr 2021
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Apr 2021
avatar Krshivam25
Krshivam25 - comment - 19 Apr 2021

Hi, @particthistle I want to get started on this. Please suggest to me how to get started.

avatar particthistle
particthistle - comment - 20 Apr 2021

@Krshivam25 several related issues including #33179 and #33180 expand to be covered by work being done with #33192.

There's related code already in the Media Manager, so my suggestion is to compare what's there with what's in the upload functions in administrator/components/com_templates and work out what to modify to allow existing files to be replaced.

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment