IBizFormFileServiceDeleteFile Method |
Deletes file previously saved via the
SaveUploadedFile(HttpPostedFileBase, String, String, Int32, Int32, Int32, String) or
PromoteTempFile(String, String, String, String, String) method.
Namespace: CMS.OnlineFormsAssembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntax void DeleteFile(
string fileName,
string filesFolderPath,
string siteName
)
Parameters
- fileName
- Type: SystemString
File name to be used for the 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 fileName or filesFolderPath is null or an empty string. |
See Also