Upload
//trimblecloud-fileservice/trimblecloud.fileservice/FilesAPI/upload
upload
[JVM]
abstract fun upload(@NonNullspaceId: @NonNullUUID, @NonNulluploadId: @NonNullUUID, @NonNullfile: @NonNullFile): CompletableFuture<Boolean>
Upload a file to the given uploadId. For multipart upload, default configuration is applied. It uploads the file with chunkSize = 5MB, maxConcurrentRequests = 4.
Return
- A future that resolves to true if the upload is successful.
Parameters
JVM
| spaceId | - The space id. |
| uploadId | - The upload id. |
| file | - The file to upload. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |
[JVM]
abstract fun upload(@NonNullspaceId: @NonNullUUID, @NonNulluploadId: @NonNullUUID, @NonNullfile: @NonNullFile, @NonNullconfiguration: @NonNullTransferFileConfiguration): CompletableFuture<Boolean>
Upload a file to the given uploadId.
Return
- A future that resolves to true if the upload is successful.
Parameters
JVM
| spaceId | - The space id. |
| uploadId | - The upload id. |
| file | - The file to upload. |
| configuration | - The configuration for the upload. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |
[JVM]
abstract fun upload(@NonNullspaceId: @NonNullUUID, @NonNulluploadId: @NonNullUUID, @NonNullmainFile: @NonNullFile, supportFileResources: List<SupportFileResourceUploadItem>): CompletableFuture<Boolean>
Upload a file along with support files to the given package upload ID. For multipart upload of main file, default configuration is applied. It uploads the main file with chunkSize = 5MB, maxConcurrentRequests = 4.
Return
- A future that resolves to true if the upload is successful.
Parameters
JVM
| spaceId | - The space id. |
| uploadId | - The upload id. |
| mainFile | - The main file to upload. |
| supportFileResources | - The support files to upload. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |
[JVM]
abstract fun upload(@NonNullspaceId: @NonNullUUID, @NonNulluploadId: @NonNullUUID, @NonNullmainFile: @NonNullFile, supportFileResources: List<SupportFileResourceUploadItem>, @NonNullconfiguration: @NonNullTransferFileConfiguration): CompletableFuture<Boolean>
Upload a file along with support files to the given package upload ID.
Return
- A future that resolves to true if the upload is successful.
Parameters
JVM
| spaceId | - The space id. |
| uploadId | - The upload id. |
| mainFile | - The main file to upload. |
| supportFileResources | - The support files to upload. |
| configuration | - The configuration for the upload. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |