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.TFileContentUploadEvent Type

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

#Declaration

Delphi
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