BizFormFileServiceSaveUploadedFile Method |
Saves uploded form 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
postedFile's
FileName.
Namespace: CMS.OnlineFormsAssembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntax public void SaveUploadedFile(
HttpPostedFileBase postedFile,
string fileName,
string filesFolderPath,
int width,
int height,
int maxSideSize,
string siteName
)
Parameters
- postedFile
- Type: System.WebHttpPostedFileBase
Posted file from a client. - fileName
- Type: SystemString
File name to be used for postedFile. - filesFolderPath
- Type: SystemString
Folder path where uploaded form files are being saved. - width
- Type: SystemInt32
Required image width to resize the postedFile to if the file is an image file, or 0. - height
- Type: SystemInt32
Required image height to resize the postedFile to if the file is an image file, or 0. - maxSideSize
- Type: SystemInt32
Required image max side size to resize the postedFile to if the file is an image file, or 0. - siteName
- Type: SystemString
Site name the corresponding form belongs to.
Implements
IBizFormFileServiceSaveUploadedFile(HttpPostedFileBase, String, String, Int32, Int32, Int32, String)Exceptions See Also