Subscribe to events in Filemanager

Vote:
 

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.

Stig

#46624
Dec 21, 2010 15:24
Vote:
 

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

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

#47405
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.