Manage the Multipart Upload
post
/ohfapi/storage/v1.0/storage/{bucketName}/{objectName}/parts
This API lets you perform the following operations:
- Merge file parts - To merge all uploaded file parts to a single file in the storage, use action=MERGE_PARTS.
/ohfapi/storage/v1.0/storage/{bucketname}/{objectname}/parts?action=MERGE_PARTS - Cancel file part upload - To cancel the ongoing file part upload, use action=DELETE_PARTS.
/ohfapi/storage/v1.0/storage/{bucketname}/{objectname}/parts?action=DELETE_PARTS - Delete Merged File- To delete the merged file use the single file delete API as follows:
/ohfapi/storage/v1.0/storage/{bucketName}/{objectName}
Request
Path Parameters
-
bucketName: string
logical grouping of files in the storage.
-
objectName: string
name of the file that is uploaded.
Query Parameters
-
action(optional): string
Allowed Values:
[ "MERGE_PARTS", "DELETE_PARTS" ]
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
200 Response
Successful operation
Examples
Merge file parts
{ "name" : "bucketzip/testpdfsplit", "self" : "/v1.0/storage/bucketzip/testpdfsplit/parts", "size" : 20770844, "checksum" : "86f9260ac8d321922eed2b842806af2e" }
Cancel file part upload
{ "self" : "/v1.0/storage/bucketzip/testpdfsplit/parts", "size" : -1 }