Back to Devexpress

TdxCloudStorageFolder.UploadFile(string) Method

vcl-dxcloudstorage-dot-tdxcloudstoragefolder-dot-uploadfile-x28-system-dot-string-x29.md

latest1.3 KB
Original Source

TdxCloudStorageFolder.UploadFile(string) Method

Uploads a locally stored file to the cloud folder.

Declaration

delphi
procedure UploadFile(const AFileName: string);

Parameters

NameType
AFileNamestring

Remarks

Call this procedure to start uploading a file whose full local path is passed as the AFileName parameter to the current folder. The cloud storage component raises the OnItemUploading event in response to an UploadFile procedure call. If the file upload process succeeds, the OnItemUploaded event occurs, and you can access a new resource via the Children.Items property; otherwise, the OnError event occurs.

Note

You can handle the cloud storage component’s OnItemUpload event to track the file upload progress.

See Also

TdxCloudStorageFolder Class

TdxCloudStorageFolder Members

dxCloudStorage Unit