[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

joomla 1.5 question - how to set CMS to overwrite image files

this seems like it should be SO SIMPLE!  that said, i cannot find any documentation about setting the Joomla 1.5 CMS to overwrite image files (instead of just creating new file names - which it currently does).

Anyone have any Joomla experience??

0
phillystyle123
Asked:
phillystyle123
  • 2
  • 2
1 Solution
 
wickedpassionCommented:
I'm not sure I understand what you are asking can you ellaborate a little.

:-)
0
 
phillystyle123Author Commented:
yes

when uploading an image file to the server through my Joomla 1.5 CMS, if the image file already exists on the server, instead of Joomla overwriting the image file on the server, it creates a new image file name.

For example:

smith.jpg is on the server

i want to overwrite smith.jpg with a new smith.jpg.

when i upload my new smiith.jpg to the server via the CMS joomla does this:
"the file "smith.jpg" already exists on the server.  we've created a new file name: smith(1).jpg"

but then i'd have to go in and swap out smith.jpg with smith(1).jpg on all of my pages that use smith.jpg.
0
 
wickedpassionCommented:
This sounds very much like an ownership issue as when you upload a file using Joomla ftp it will have one owner, opposed to the original image that was created during installation will have another!

Unfortunately there is only one way around this which is to contact your Host support where you have this ownership problem.

Ask them to set the ownership of all files to the same!

0
 
taagangelCommented:
Did you find a solution?
I had the same issue... open /administrator/components/com_media/admin.media.php

Around line 168 find and remove this code:


if (file_exists($dest_dir.$file['name'])) {
		mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], "Upload FAILED. File already exists" );
	}

Open in new window

0
 
phillystyle123Author Commented:
thanks!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now