ContentHubFileUploadConnect Methods
ContentHubFileUploadConnect includes multiple methods.
The methods for ContentHubFileUploadConnect are:
-
ContentHubUploadItemInputRepresentation()
Used to create an contentHubUploadItemInputRepresentation instance with the following parameters.
-
initializeFileUpload(inputRep)
Used to create an outputRep instance with the below parameters.
-
ContentHubCompleteUploadInputRepresentation()
Used to create an inputRep instance with the below parameters.
-
completeFileUpload(repositoryId, inputRep)
Once all parts are uploaded successfully, the process is finalized in Salesforce by invoking the completeFileUpload method. It returns an outputRep instance that indicates the completion status of the file.
-
abortFileUpload(repositoryId, fileId, uploadId)
To cancel a file upload, the abortFileUpload method is invoked. This method is specifically used for aborting multi-part uploads to an external storage.