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