Skip to main content

TdxCloudStorage.TFileContentUploadEvent Type

The nested procedural type of the existing file update progress tracking event.

Declaration

TFileContentUploadEvent = procedure(Sender: TObject; const AFile: TdxCloudStorageFile; const APosition: Integer) of object;

Parameters

Name Type Description
Sender TObject

The cloud storage component that updates an existing file.

AFile TdxCloudStorageFile

The metadata container that corresponds to the updated file.

APosition Integer

The number of successfully uploaded bytes.

Remarks

TheSender parameter provides access to the cloud storage component that raised the file update progress tracking event. To access the cloud storage component’s class members within a TFileContentUploadEvent 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 currently updated file on the connected cloud storage service’s server from the local source.

The APosition parameter returns the number of successfully uploaded bytes from the local data stream. Use this parameter value to track and display the overall content update progress. For instance, you can use the source data stream size obtained from a TFileContentUploadingEvent event handler to calculate an uploaded portion of the updated file (as a percentage).

The OnFileContentUpload event references the TFileContentUploadEvent nested procedural type.

See Also