London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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.