Help Center> OBS GO SDK> API Reference> Data Types> Request Parameter of PUT Part
Updated on 2022-02-10 GMT+08:00

Request Parameter of PUT Part

Type Definition

type UploadPartInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Key

string

Mandatory

Object name

PartNumber

int

Mandatory

Part number, which ranges from 1 to 10000

UploadId

string

Mandatory

Multipart upload ID

ContentMD5

string

Optional

Base64-encoded MD5 value of the part to be uploaded. It is provided for the OBS server to verify data integrity.

SseHeader

SseCHeader

Optional

Header for server-side encryption

Body

io.Reader

Optional

Data flow of the part

SourceFile

string

Optional

Path to the source file of the part

Offset

int64

Optional

Start offset (in bytes) of a part in the source file. The default value is 0.

PartSize

int64

Optional

Size (in bytes) of a part in the source file. The default value is the file size minus Offset.

  • Body and SourceFile cannot be used together.
  • If both Body and SourceFile are nil, the size of the uploaded object is 0 bytes.
  • Offset, PartSize, and SourceFile are used together to specify a part of the source file to be uploaded.