UploadedFileFromHttpPostedFile Method (String, HttpPostedFile) |
Creates a UploadedFile instance from HttpPostedFile instance.
Namespace: Kettic.AspNet.ControlsAssembly: 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
)
Public Shared Function FromHttpPostedFile (
inputFieldName As String,
file As HttpPostedFile
) As UploadedFile
public:
static UploadedFile^ FromHttpPostedFile(
String^ inputFieldName,
HttpPostedFile^ file
)
static member FromHttpPostedFile :
inputFieldName : string *
file : HttpPostedFile -> UploadedFile
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:
UploadedFileSee Also