Method HttpMessagePart() :addFilePart() Foundation
Adds a file to a message.
Syntax
:addFilePart( <cName>, <cSourceName> [,<cTargetName>] ) --> oMessagePart
Parameters
<cName>
A character string with the logical name of the file. This name is used for accessing the file on the server.
<cSourceName>
A character string with the name and the path of the local file on disk.
<cTargetName>
A character string with the name of the target file on the server. This parameter is optional. It defaults to the filename part in the <cSourceName> parameter.
Return
:addFilePart() returns the message part object that is added to the message or message part. The headers of the new message part are automatically set up for uploading the file.
Description
The method :addFilePart() adds a file to a message. This causes an implicit upload of the file to the server.
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.