TTMSFNCCloudAI.UploadFile Method
Uploads a file for later use in AI requests.
API unit family: TMSFNCCloudAI
Declaring type: TTMSFNCCloudAI
Syntax
procedure UploadFile(const AFileName: string; AType: TTMSFNCCloudAIFileType; const ACreated: TTMSFNCCloudAICreatedEvent = nil; Proc: TTMSFNCCloudAIUploadProc = nil);
Parameters
| Name | Description |
|---|---|
AFileName |
Path of the file to upload. |
AType |
Content type category for the file. |
ACreated |
Optional callback invoked with the created file identifier. |
Proc |
Optional callback invoked with the uploaded file identifier. |