TTMSFNCCloudBaseRequestPostDataBuilder.AddFormData Method
Appends a named form-data part to the multipart POST body.
API unit family: TMSFNCCloudBase
Declaring type: TTMSFNCCloudBaseRequestPostDataBuilder
Syntax
procedure AddFormData(AName: string; AValue: string; ASkipBoundary: Boolean = False; AFileName: string = ''; AContentType: string = ''; AContentTransferEncoding: string = ''; ASkipLineBreakOnEnd: Boolean = False);
Parameters
| Name | Description |
|---|---|
AName |
The form field name. |
AValue |
The form field value. |
ASkipBoundary |
When True, omits the leading boundary line. |
AFileName |
Optional filename for file upload fields. |
AContentType |
Optional MIME type for the field content. |
AContentTransferEncoding |
Optional transfer encoding, such as base64. |
ASkipLineBreakOnEnd |
When True, omits the trailing line break after the field. |