Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCloudStorage.TItemUploadEvent Type

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

#Declaration

Delphi
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