volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

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.

Stig

#46624
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)
{  .....do stuff.....}

#47405
Jan 27, 2011 12:52
error 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.