Skip to main content
A newer version of this page is available. .

TdxCloudStorage.TItemUploadingEvent Type

The nested procedural type of the file upload initiation event.

Declaration

TItemUploadingEvent = procedure(Sender: TObject; const AFileName: string; const ASize: 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.

ASize Integer

The source local file’s size, in bytes.

Remarks

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

The AFileName parameter returns the full path to the local file that the file upload routine has started to copy to the connected online storage service’s server.

The ASize parameter returns the source local file’s size, in bytes. For example, you can use this value to calculate the overall file upload progress within a TItemUploadEvent event handler.

The OnItemUploading event references the TItemUploadingEvent nested procedural type.

See Also