Request Parameter of Uploading a File
Type Definition
type PutFileInput struct
Parameter Description
| Field | Type | Optional or Mandatory | Description |
|---|---|---|---|
| Bucket | string | Mandatory | Bucket name |
| Key | string | Mandatory | Object name |
| ContentMD5 | string | Optional | Base64-encoded MD5 value of the object data to be uploaded. It is provided for the OBS server to verify data integrity. |
| ACL | Optional | ACL that can be pre-defined during the object creation | |
| 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 |
| ContentLength | int64 | Optional | Object size in bytes |
| SseHeader | or | Optional | Header for server-side encryption |
| StorageClass | Optional | Storage class specified for the to-be-created object | |
| Metadata | map[string]string | Optional | Customized metadata of the object |
| SourceFile | string | Optional | Path to the source file of the object |
| GrantReadId | string | Optional | Grants specific tenants the permission required to read objects and obtain object metadata. |
| GrantReadAcpId | string | Optional | Grants specific tenants the permission required to obtain the object ACL. |
| GrantWriteAcpId | string | Optional | Grants specific tenants the permission required to write the object ACL. |
| GrantFullControlId | string | Optional | Grants specific tenants the permission required to read objects, obtain object metadata, as well as obtain and write the object ACL. |
| Expires | int64 | Optional | Specifies when the object will expire. |
Last Article: Request Parameter of Uploading an Object
Next Article: Response Result of PUT Object
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.