VMRack
Home
Products
Solutions
Pricing
Support
Referral Program
Developer Center
OpenAPI Signature Rules
Region and Endpoint
QueueService
Delete Queue
Create Queue
Update Queue
Queue List
MtsTaskService
Create Task
Retry Task
Get Task Details
Delete Task
List Tasks
Batch Delete Tasks
Get Node Process Types
Batch Retry Tasks
PresetService
Create Preset
Preset Details
Delete Preset
Update Preset
Preset List
WorkflowService
Create Workflow
Copy Workflow
Get Workflow
Delete Workflow
Update Workflow
Workflow List
Domain Management
Query the list of domain names
Object Management
Object - Obtain object information
Object - Delete object
Object - Interrupt shard upload, copy, move, modify storage type task
Object - Complete shard copy, move, modify storage type task
Object - Copy object
Object - Create a shard copy, move, modify storage type task
Object - Create directory
Object - Delete directory
Object - Get object list
Object - Get metadata
Object - Update metadata
Object - Move object
Object - Execute shard copy, move, modify storage type
Object - Complete multipart upload task
Object - Create multipart upload task
Object - Pre-download
Object - Pre-sign
Object - Modify object storage type
Bucket Management
Bucket - Delete all bucket data
Bucket - Query bucket information
Bucket - Create bucket
Bucket - Delete bucket
Bucket - Modify bucket access control permissions
Bucket - Get CORS configuration
Bucket - Update CORS configuration
Bucket - Create CORS configuration
Bucket - Delete CORS configuration
Bucket - Get CORS configuration list
Bucket - Query bucket lifecycle list
Bucket - Update bucket lifecycle
Bucket - Create bucket lifecycle
Bucket - Delete bucket lifecycle
Bucket - Query bucket list
Bucket - Add client cache Maxage
Bucket - Get referer configuration
Bucket - Edit referer configuration
Version Notes
  1. Developer Center
  2. /
  3. Object Management
  4. /
  5. Object - Create multipart upload task

Object - Create multipart upload task

Create a shard upload task and return the upload address. Please follow the steps below when uploading:
1. Use POST to send shard data
2. Set Content-Type to multipart/form-data
3. Use 'file' field to store shard data in form-data
4. URL parameters include:id={task_id}&part_number={part_number}
5. Add request header: Authorization: Bearer {{authorization}}
6. Save etag and part_number from the returned data for use in the complete shard upload task interface

Example: POST {{upload_url}}?id={{task_id}}&part_number={{part_number}}

Returned data example: {"code":12156200,"msg":"Success","data":{"etag":"****","part_number":1}}

Request Parameters

bucket_idstring
Required

Bucket ID

namestring
Required

File name (length 0 ~ 1023 characters)

directorystring
Optional

Directory (defaults to root directory of bucket, no slash / at the beginning or end, length 0 ~ 1023 characters)

sizestring
Required

File size (in bytes)

storage_classnumber
Required

Storage type

1: HighSpeed

2: StandardSpeed

3: LowSpeed

initboolean
Optional

Whether to clear the task (defaults to false)

Response Parameters

task_idstring
Required

Task ID

upload_urlstring
Required

Upload URL

authorizationstring
Required

Authorization

Response Example

{
  "task_id": "2013****3088",
  "upload_url": "https://***.com/v1/oss/upload",
  "authorization": "Bearer ey****ssw5c"
}

VMRack
  • Products
  • VPS Hosting
  • VPS Hosting
    Unmetered
  • Bare Metal
  • GPU Rental
  • CDN
    Public Beta
  • Custom CDN
  • Object Storage
    Public Beta
  • Transcoder
    Public Beta
  • Solutions
  • Bring Your Own IP (BYOIP)
  • Customized Server Solutions
  • Colocation Services
  • Resources
  • Pricing
  • Help Documentation
  • Articles
  • Developer Center
  • Referral Program
  • Contact
  • Company
  • About Us
  • Terms of Service
  • User Agreement
  • Privacy Policy
  • Service Level Agreement