Skip to main content

TdxCloudStorage.TFileContentUploadingEvent Type

The nested procedural type of the existing file update initiation event.

Declaration

TFileContentUploadingEvent = procedure(Sender: TObject; const AFile: TdxCloudStorageFile; const ASize: Integer) of object;

Parameters

Name Type Description
Sender TObject

The cloud storage component that started a file update process.

AFile TdxCloudStorageFile

The file metadata container that corresponds to the updated file.

ASize Integer

The updated content size, in bytes.

Remarks

The Sender parameter provides access to the cloud storage component that raised the file update initiation event. To access the cloud storage component’s class members within a TFileContentUploadingEvent event handler, cast the parameter value to the TdxCloudStorage class.

The AFile parameter provides access to the cloud file metadata container that corresponds to the existing file that the content upload routine has started to update on the connected online storage service’s server from a local data stream.

The ASize parameter returns the number of bytes that the content upload routine is supposed to copy from the source data stream to the connected server. You can use this value to estimate the overall content update progress in a TFileContentUploadEvent event handler.

Note

The returned content size (ASize) does not always match the actual size of the source data stream.

See Also