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??

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not sure I understand what you are asking can you ellaborate a little.

phillystyle123Author Commented:

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.
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!

Did you find a solution?
I had the same issue... open /administrator/components/com_media/

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


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phillystyle123Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.