Click or drag to resize
IBizFormFileServiceSaveUploadedFileAsTempFile Method
Saves uploaded form file as a temporary file to the file system. The file can be optionally resized if it is an image file. The type of the file is determined from the uploadedFile's FileName.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 13.0.131
Syntax
C#
void SaveUploadedFileAsTempFile(
	IUploadedFile uploadedFile,
	string tempFileIdentifier,
	string tempFilesFolderPath,
	int width,
	int height,
	int maxSideSize
)

Parameters

uploadedFile
Type: CMS.BaseIUploadedFile
Posted file from a client.
tempFileIdentifier
Type: SystemString
Identifier of the temporary file to derive file name from.
tempFilesFolderPath
Type: SystemString
Folder path where temporary form files are being saved.
width
Type: SystemInt32
Required image width to resize the uploadedFile to if the file is an image file, or 0.
height
Type: SystemInt32
Required image height to resize the uploadedFile to if the file is an image file, or 0.
maxSideSize
Type: SystemInt32
Required image max side size to resize the uploadedFile to if the file is an image file, or 0.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when uploadedFile is null.
ArgumentExceptionThrown when tempFileIdentifier or tempFilesFolderPath is null or an empty string.
See Also