| IBizFormFileServicePromoteTempFile Method  | 
 
Namespace: CMS.OnlineFormsAssembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntaxvoid 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| Exception | Condition | 
|---|
| ArgumentException | Thrown when tempFileIdentifier, tempFilesFolderPath, fileName or filesFolderPath is null or an empty string. | 
See Also