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 property contains the value of the Content-Type of each form variable which corresponds to the file in the File property. |
File String |
This property 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 is set, this property 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 property may be set to the file data instead of specifying a file from disk. |
InputDataB TBytes |
Specifies the file data to be sent. This property may be set to the file data instead of specifying a file from disk. |
Name String |
This property contains the name of each form variable which corresponds to the file in the File property. |
Constructors
constructor Create();
constructor Create(valName: String; valFile: String);
constructor Create(valName: String; valInputData: TBytes);