Click or drag to resize
IOssPutObject 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
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
See Also