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

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntax
C#
public 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 the permanent file.
filesFolderPath
Type: SystemString
Folder path where uploaded form files are being saved.
siteName
Type: SystemString
Site name the corresponding form belongs to.

Implements

IBizFormFileServicePromoteTempFile(String, String, String, String, String)
Exceptions
ExceptionCondition
ArgumentExceptionThrown when tempFileIdentifier, tempFilesFolderPath, fileName or filesFolderPath is null or an empty string.
See Also