FragmentComplete Event
Fires after each fragment of a resumable upload is completed.
Syntax
ANSI (Cross Platform)
virtual int FireFragmentComplete(ShareFileFragmentCompleteEventParams *e);
typedef struct {
int FragmentNumber;
int FragmentCount;
int Interrupt;
int reserved;
} ShareFileFragmentCompleteEventParams;
Unicode (Windows)
virtual INT FireFragmentComplete(ShareFileFragmentCompleteEventParams *e);
typedef struct {
INT FragmentNumber;
INT FragmentCount;
BOOL Interrupt;
INT reserved;
} ShareFileFragmentCompleteEventParams;
- (void)onFragmentComplete:(int)fragmentNumber :(int)fragmentCount :(int*)interrupt;
#define EID_SHAREFILE_FRAGMENTCOMPLETE 3
virtual INT IPWORKSCLOUD_CALL FireFragmentComplete(INT &iFragmentNumber, INT &iFragmentCount, BOOL &bInterrupt);
Remarks
When UseResumableUpload is true and UploadFile is called, this event will fire after each fragment is uploaded, providing an indication of overall upload progress.
FragmentNumber is the number of the current fragment that has completed. This value starts at 1.
FragmentCount is the total number of fragments that will be uploaded.
Interrupt can be set to true to interrupt the upload. The upload may be resumed later.