FragmentComplete Event
This event fires after each fragment of a resumable upload is completed.
Syntax
googledrive.on('FragmentComplete', [callback])
Callback
The 'callback' is called when the 'FragmentComplete' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.fragmentNumber e.fragmentCount e.interrupt
Remarks
When UseResumableUpload is True and UploadFile is called this event will fire after each fragment is uploaded. This shows the overall progress of the upload. When this event fires Interrupt can also be set to True to interrupt the upload. The upload may then be resumed later.
FragmentNumber is the number of the current fragment that has completed. This value begins at 1.
FragmentCount is the total number of fragments that will be uploaded.
Interrupt may be set to True to interrupt the upload.