Try our conversational search powered by Generative AI!

Subscribe to events in Filemanager


How do I hook into the UnifiedDirectory.UnifiedDirectoryAdding event?

I want to do some actions when a file is added to the Filemanager. I've tried adding the event hookup to global.asax (application_onstart) and regular class.


Dec 21, 2010 15:24

Add the following to Application_Start in global.asax.cs:
UnifiedDirectory.UnifiedDirectoryAdding += DirectoryAdding;

And create a method:
protected void DirectoryAdding(UnifiedDirectory sender, UnifiedVirtualPathEventArgs e)
{ stuff.....}

Jan 27, 2011 12:52
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.