Click or drag to resize
UploadedFileFromHttpPostedFile Method (String, HttpPostedFile)
Creates a UploadedFile instance from HttpPostedFile instance.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public static UploadedFile FromHttpPostedFile(
	string inputFieldName,
	HttpPostedFile file
)

Parameters

inputFieldName
Type: SystemString
The value of the name attribute of the file input field (equals the UniqueID of the FileUpload control)
file
Type: System.WebHttpPostedFile
The HttpPostedFile instance. Usually, you could get this from a ASP:FileUpload control's PostedFile property

Return Value

Type: UploadedFile
See Also