Click or drag to resize
OssClientPutObject Method (String, String, String, ObjectMetadata)
Uploads a local file with specified metadata to OSS.

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax
public PutObjectResult PutObject(
	string bucketName,
	string key,
	string fileToUpload,
	ObjectMetadata metadata
)

Parameters

bucketName
Type: SystemString
Bucket name
key
Type: SystemString
Key
fileToUpload
Type: SystemString
local file path
metadata
Type: Aliyun.OSSObjectMetadata
OssObjectmetadata

Return Value

Type: PutObjectResult
PutObjectResult instance

Implements

IOssPutObject(String, String, String, ObjectMetadata)
See Also