Creates a container for a posted file
Namespace:
HttpServerAssembly: HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public HttpFile( string name, string filename, string contentType, string uploadFilename ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ name As String, _ filename As String, _ contentType As String, _ uploadFilename As String _ ) |
| Visual C++ |
|---|
public: HttpFile( String^ name, String^ filename, String^ contentType, String^ uploadFilename ) |
Parameters
- name
- Type: System..::.String
The identifier of the post field
- filename
- Type: System..::.String
The file path
- contentType
- Type: System..::.String
The content type of the file
- uploadFilename
- Type: System..::.String
The name of the file uploaded
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | If any parameter is null or empty |