System.Web Namespace
Provides access to and organizes files uploaded by a client.
The properties and methods of the HttpFileCollection class are exposed via the Files property of the intrinsic Request object.
Clients encode files and transmit them in the content body using multipart MIME format with an HTTP Content-Type header of multipart/form-data. ASP.NET extracts the encoded file ( s ) from the content body into individual members of the Request.Files collection. The contents and properties of each file are then accessible via the HttpPostedFile class.
The HtmlInputFile control provides the means to select and upload files from a client.
Request.Files.methodName ( arguments );
Request.Files.methodName ( arguments ) |
|
C# |
VB |
Type var = Request.Files.propertyName;
Type var = Request.Files [ key ];
Type var = Request.Files.methodName ( arguments );
Dim var as Type = Request.Files.propertyName
Dim var as Type = HttpFileCollection ( key )
Dim var as Type = Request.Files.methodName ( arguments ) |
|
C# |
VB |
HttpPostedFile Class