Skip to main content

TdxCloudStorage.OnFileContentUpload Event

Enables you to track the data upload progress when the component updates an existing file.

Declaration

property OnFileContentUpload: TFileContentUploadEvent read; write;

Remarks

A data upload speed depends on the updated file’s size and network connection quality. Your application cannot update a file on a remote server from a local source at instant. This process can take a noticeable amount of time in the case of a large file. You can handle the OnFileContentUpload event to track the file update progress and, optionally, visualize it as a number of bytes and/or percentage/progress bar.

This event occurs at the start and end of a file update process, and every time the data upload routine successfully copies a 64-kilobyte block (that is, a file chunk) from a data stream to the connected online storage’s server. Refer to the TFileContentUploadEvent nested procedural type description that includes details on all parameters within an OnFileContentUpload event handler.

Note

Handle the OnFileContentUploading and OnFileContentUploaded events to perform specific actions on the start and successful finish of a file update process. To obtain information on any file data upload errors, handle the OnError event.

See Also