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

Parameters

session  IUserWriteSession
The session that will be used to process the upload.
uploadStream  Stream
Stream of the upload file
fileName  String
Name of the upload file.
targetPhysicalFolder  String
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