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, Ed, biapar, Willr, Ingo, swaiba

File add_extension onBeforeWrite

Go to End



Community Member, 81 Posts

6 October 2011 at 1:46am


Im trying to apply an on before write to File but it appears it does not get called when i upload a file, I've put some logger messages into both my extension and into File.php onBeforeWrite and it appears that neither of these methods get called.

Has any any experience on doing something like this or what the cause could be?