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.

General Questions

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

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

Renaming File/Image Name before save


Reply

1268 Views

Avatar
Terminator4

8 March 2010 at 11:16pm Community Member, 81 Posts

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