Click or drag to resize
IBizFormFileServicePromoteTempFile Method
Saves temporary file previously saved via the SaveUploadedFileAsTempFile(IUploadedFile, String, String, Int32, Int32, Int32) method as a permanent form file.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 13.0.131
Syntax
C#
void PromoteTempFile(
	string tempFileIdentifier,
	string tempFilesFolderPath,
	string fileName,
	string filesFolderPath,
	string siteName
)

Parameters

tempFileIdentifier
Type: SystemString
Identifier of the temporary file to derive file name from.
tempFilesFolderPath
Type: SystemString
Folder path where temporary files are being saved.
fileName
Type: SystemString
File name to be used for temporary file.
filesFolderPath
Type: SystemString
Folder path where uploaded form files are being saved.
siteName
Type: SystemString
Site name the corresponding form belongs to.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when tempFileIdentifier, tempFilesFolderPath, fileName or filesFolderPath is null or an empty string.
See Also