cancelUpload ()
This method is used to cancel attachment upload operation.
List<ResultObject>Â cancelUpload(List<ID>Â wipIds, String objectId)
Parameters:
wipIds:Â List of Salesforce.com IDs of attachment "file" records.
objectId:Â Id of the parent object. You can use 15-character or 18-character Salesforce.com ID.
Return Value:Â The method will return a list of ResultObject (Figure 127) which holds cancel status information for each file record.
Example code:
List<Id>wipIds = new List<Id>();
wipIds.add(ID.valueOf(uploadRequestInfos .fileWipId));
List<cg.ResultObject>resultObjects = cg.SDriveTools.cancelUpload(wipIds, objectId);