FileVar Type
The file variable for the current request.
Remarks
This type describes a file that is to be posted when an upload action is performed. The type contains fields which describe this variable's name, and the filename of the file being uploaded.
Fields
ContentType String |
This field contains the value of the Content-Type of each form variable which corresponds to the file in the File field. |
File String |
This field contains the path and filename of each file to be sent. When the component is used as an upload client, this property must point to valid file name that will be sent to the server. If InputData or InputStream is set, this field may instead be set to the desired filename which will be used in the request. |
InputData String |
Specifies the file data to be sent. This field may be set to the file data instead of specifying a file from disk. If set, this field takes precedence over InputStream. |
InputDataB Byte[] |
Specifies the file data to be sent. This field may be set to the file data instead of specifying a file from disk. If set, this field takes precedence over InputStream. |
InputStream System.IO.Stream |
This field is set when a stream is to be used for the data of the current filevar. |
Name String |
This field contains the name of each form variable which corresponds to the file in the File field. |
Constructors
[VB.NET] Public FileVar() [C#] public FileVar();
[VB.NET] Public FileVar(ByVal Name As String, ByVal File As String) [C#] public FileVar(string name, string file);
[VB.NET] Public FileVar(ByVal Name As String, ByVal InputStream As System.IO.Stream) [C#] public FileVar(string name, System.IO.Stream inputStream);
[VB.NET] Public FileVar(ByVal Name As String, ByVal InputData As String) [C#] public FileVar(string name, byte[] inputData);