Help Center> OBS GO SDK> API Reference> Data Types> Request Parameters of Resumable Upload
Updated on 2022-02-10 GMT+08:00

Request Parameters of Resumable Upload

Type Definition

type UploadFileInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Key

string

Mandatory

Object name

UploadFile

string

Mandatory

Name of the local file to be uploaded

PartSize

int64

Mandatory

Part size, in bytes. The value ranges from 100 KB to 5 GB.

TaskNum

int

Optional

Maximum number of files that can be uploaded concurrently in multipart mode.

EnableCheckpoint

bool

Optional

Whether to enable the resumable upload mode. The default value is False, indicating that this mode is disabled.

CheckpointFile

string

Optional

File used to record the upload progress. This parameter is effective only in the resumable upload mode. If the value of this parameter is empty, the file will be in the same directory as the local file to be uploaded.

ACL

AclType

Optional

Pre-defined ACL

WebsiteRedirectLocation

string

Optional

Location where the object is redirected to, when the bucket is configured with website hosting.

ContentType

string

Optional

MIME type of the object

SseHeader

SseCHeader

or

SseKmsHeader

Optional

Header for server-side encryption

StorageClass

StorageClassType

Optional

Storage class of the object

Metadata

map[string]string

Optional

Customized metadata of the object

Expires

int64

Optional

Lifecycle of the object to be uploaded, in days.