Skip to main content
Table of Contents

TTMSFNCCustomCloudMicrosoftOneDrive.Upload Method

Uploads a local file into a folder.

API unit family: TMSFNCCloudMicrosoftOneDrive Declaring type: TTMSFNCCustomCloudMicrosoftOneDrive

Syntax

FMX.TMSFNCCloudMicrosoftOneDrive.hppPascalC++
function Upload(AFolder: TTMSFNCCloudItem; const AFileName: TTMSFNCUtilsFile): TTMSFNCCloudItem; overload; override;
virtual TTMSFNCCloudItem* __fastcall Upload(TTMSFNCCloudItem* AFolder, const TTMSFNCUtilsFile AFileName)/* overload */;

Remarks

Uploads use a resumable upload session; existing files with the same name are replaced.

Parameters

Name Description
AFolder Destination folder; pass nil to upload to the root.
AFileName Local file to upload.

Returns

The item created for the uploaded file.