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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Renaming File/Image Name before save


Go to End


2126 Views

Avatar
Terminator4

Community Member, 81 Posts

8 March 2010 at 11:16pm

Hi,
I would like to know how it is possible to rename a file before it gets inserted. I would like to add a timestamp to the beginning of the filename. In addition, I would like the file to be saved in a custom folder under assets. This folder is to be named MonthYear (eg. 012010).

Please assist if possible.

Thank you