TdxCloudStorage.OnItemUpload Event
Enables you to track the file upload progress.
Declaration
property OnItemUpload: TItemUploadEvent read; write;
Remarks
The file upload speed depends on the file size and network connection quality. Your application cannot copy a local file to a remote server instantly, and this process can take a noticeable amount of time in the case of a large file. You can handle the OnItemUpload event to track the file upload 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 upload process, and every time the file upload routine successfully copies a 64-kilobyte block (that is, a file chunk) to the connected online storage’s server. Refer to the TItemUploadEvent nested procedural type description that includes details on all parameters within an OnItemUpload event handler.
Note
Handle the OnItemUploading and OnItemUploaded events to perform specific actions on the start and successful finish of an upload process. To obtain information on any file upload errors, handle the OnError event.