FileManager raises server-side before and after events for each file action. Event handlers are attached in code rather than markup.

Before events: It's possible to stop a file action (and optionally display a message) by canceling the corresponding before event.

After events: After events can be used to save information about a completed file action. For instance, the information can be logged or sent via email.