IOssPutBigObject Method (String, String, String, ObjectMetadata, NullableInt64) |
Note: This API is now obsolete.
Deprecated method.Please use ResumableUploadObject.
Uploads the specified file with optional part size.
If the file size is not bigger than the part size, then use normal file upload.
Otherwise use multipart upload.
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax [ObsoleteAttribute("PutBigObject is deprecated, please use ResumableUploadObject instead")]
PutObjectResult PutBigObject(
string bucketName,
string key,
string fileToUpload,
ObjectMetadata metadata,
Nullable<long> partSize = null
)
<ObsoleteAttribute("PutBigObject is deprecated, please use ResumableUploadObject instead")>
Function PutBigObject (
bucketName As String,
key As String,
fileToUpload As String,
metadata As ObjectMetadata,
Optional partSize As Nullable(Of Long) = Nothing
) As PutObjectResult
[ObsoleteAttribute(L"PutBigObject is deprecated, please use ResumableUploadObject instead")]
PutObjectResult^ PutBigObject(
String^ bucketName,
String^ key,
String^ fileToUpload,
ObjectMetadata^ metadata,
Nullable<long long> partSize = nullptr
)
[<ObsoleteAttribute("PutBigObject is deprecated, please use ResumableUploadObject instead")>]
abstract PutBigObject :
bucketName : string *
key : string *
fileToUpload : string *
metadata : ObjectMetadata *
?partSize : Nullable<int64>
(* Defaults:
let _partSize = defaultArg partSize null
*)
-> PutObjectResult
Parameters
- bucketName
- Type: SystemString
bucket name - key
- Type: SystemString
target object key - fileToUpload
- Type: SystemString
local file path to upload - metadata
- Type: Aliyun.OSSObjectMetadata
OssObject metadata - partSize (Optional)
- Type: SystemNullableInt64
Part size.If it's not specified, then use DefaultPartSize.
If the part size is less than PartSizeLowerLimit, it will be changed to PartSizeLowerLimit automatically.
Return Value
Type:
PutObjectResultPutObjectResult instance
See Also