Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Replace an image

Go to End


Nathan Cox

Community Member, 99 Posts

15 April 2009 at 4:33pm

I've got a page that has_one image that will need to be updated occasionally. I'm using an ImageField to upload/attach it to the page, but is there a way to get SilverStripe to actually delete the old version of the image when you upload a new one?
I'd prefer to automate this than get the client to go into Files & Images and delete the old one every time.