Skip to main content

TdxCloudStorage.TItemUploadEvent Type

The nested procedural type of the file upload progess tracking event.

Declaration

TItemUploadEvent = procedure(Sender: TObject; const AFileName: string; const APosition: Integer) of object;

Parameters

Name Type Description
Sender TObject

The cloud storage component that uploads a file to the connected server.

AFileName string

The full path to the uploaded file.

APosition Integer

The number of successfully uploaded bytes of the source file.

Remarks

The Sender parameter provides access to the cloud storage component that raised the file upload progress tracking event. To access the cloud storage component’s class members within a TItemUploadEvent event handler, cast the parameter value to the TdxCloudStorage class.

The AFileName parameter returns the full path to the local file that is currently being uploaded to the connected cloud storage service’s server.

The APosition parameter returns the number of successfully uploaded bytes of the local file (AFileName). You can display this value in your application in various measurement units and calculate the file upload progress (as a fraction or percentage). For instance, you can use the file size obtained from a TItemUploadingEvent event handler.

The OnItemUpload event references the TItemUploadEvent nested procedural type.

See Also