ICustomHooksOnBeforeUpload Method
|
This method is invoke before a File Upload gets processed by Ingeniux CMS Site Instance server.
Namespace:
Ingeniux.CMS.Models.Hooks
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntaxvoid OnBeforeUpload(
IUserWriteSession session,
ref Stream uploadStream,
ref string fileName,
ref string targetPhysicalFolder
)
Sub OnBeforeUpload (
session As IUserWriteSession,
ByRef uploadStream As Stream,
ByRef fileName As String,
ByRef targetPhysicalFolder As String
)
void OnBeforeUpload(
IUserWriteSession^ session,
Stream^% uploadStream,
String^% fileName,
String^% targetPhysicalFolder
)
abstract OnBeforeUpload :
session : IUserWriteSession *
uploadStream : Stream byref *
fileName : string byref *
targetPhysicalFolder : string byref -> unit
Parameters
- session
- Type: Ingeniux.CMSIUserWriteSession
The session that will be used to process the upload. - uploadStream
- Type: System.IOStream
Stream of the upload file - fileName
- Type: SystemString
Name of the upload file. - targetPhysicalFolder
- Type: SystemString
Full path of target folder.
RemarksWhen this action is invoked, the objects involved have yet to be saved to the Content Store.
Invoked by the sfwupload handler
See Also