Skip to main content
Table of Contents

TTMSMCPCloudBaseRequestPostDataBuilder.AddAttachment Method

Appends a named attachment part to the multipart POST body.

API unit family: TMS.MCP.CloudBase Declaring type: TTMSMCPCloudBaseRequestPostDataBuilder

Syntax

TMS.MCP.CloudBase.hppPascalC++
procedure AddAttachment(AName: string; AValue: string; ASkipBoundary: Boolean = False; AFileName: string = ''; AContentType: string = ''; AContentTransferEncoding: string = ''; ASkipLineBreakOnEnd: Boolean = False);
void __fastcall AddAttachment(System::UnicodeString AName, System::UnicodeString AValue, bool ASkipBoundary = false, System::UnicodeString AFileName = System::UnicodeString(), System::UnicodeString AContentType = System::UnicodeString(), System::UnicodeString AContentTransferEncoding = System::UnicodeString(), bool ASkipLineBreakOnEnd = 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.