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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Replace an image


Go to End


1181 Views

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