Skip to main content
Table of Contents

TTMSFNCCloudAI.UploadFile Method

Uploads a file for later use in AI requests.

API unit family: TMSFNCCloudAI Declaring type: TTMSFNCCloudAI

Syntax

FMX.TMSFNCCloudAI.hppPascalC++
procedure UploadFile(const AFileName: string; AType: TTMSFNCCloudAIFileType; const ACreated: TTMSFNCCloudAICreatedEvent = nil; Proc: TTMSFNCCloudAIUploadProc = nil);
void __fastcall UploadFile(const System::UnicodeString AFileName, TTMSFNCCloudAIFileType AType, const _di_TTMSFNCCloudAICreatedEvent ACreated = _di_TTMSFNCCloudAICreatedEvent(), _di_TTMSFNCCloudAIUploadProc Proc = _di_TTMSFNCCloudAIUploadProc());

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.