Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnFileReceived
<a class="clsStd" href="../index.htm">Channel</a>.OnFileReceived Event (Restricted)
This event fires when a file is received from the remote application. The event is labeled "restricted" because it is available only if the application has both the ActiveX and SendFile permission flags. For more information, see Standard vs. Advanced Applications.
VBScript Syntax
function Channel_OnFileReceived() ' A file was received from remote application; inspect the value of Channel.FileInfo End Function
JavaScript Syntax
function Channel_OnFileReceived() { // A file was received from remote application; inspect the value of Channel.FileInfo }
Remarks
Inspect the value of Channel.FileInfo after the OnFileReceived event.
The ActiveX permission flag is required because managing files involves interacting with the local computer's file system.