Click or drag to resize

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
Syntax
void OnBeforeUpload(
	IUserWriteSession session,
	ref Stream uploadStream,
	ref string fileName,
	ref string targetPhysicalFolder
)

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.
Remarks
When this action is invoked, the objects involved have yet to be saved to the Content Store. Invoked by the sfwupload handler
See Also