IOssResumableUploadObject Method (String, String, String, ObjectMetadata, String, NullableInt64, EventHandlerStreamTransferProgressArgs) |
Resumable file upload. It automaticlly uses multipart upload upon big file and also support resume upload after a failed upload.
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax PutObjectResult ResumableUploadObject(
string bucketName,
string key,
string fileToUpload,
ObjectMetadata metadata,
string checkpointDir,
Nullable<long> partSize = null,
EventHandler<StreamTransferProgressArgs> streamTransferProgress = null
)
Function ResumableUploadObject (
bucketName As String,
key As String,
fileToUpload As String,
metadata As ObjectMetadata,
checkpointDir As String,
Optional partSize As Nullable(Of Long) = Nothing,
Optional streamTransferProgress As EventHandler(Of StreamTransferProgressArgs) = Nothing
) As PutObjectResult
PutObjectResult^ ResumableUploadObject(
String^ bucketName,
String^ key,
String^ fileToUpload,
ObjectMetadata^ metadata,
String^ checkpointDir,
Nullable<long long> partSize = nullptr,
EventHandler<StreamTransferProgressArgs^>^ streamTransferProgress = nullptr
)
abstract ResumableUploadObject :
bucketName : string *
key : string *
fileToUpload : string *
metadata : ObjectMetadata *
checkpointDir : string *
?partSize : Nullable<int64> *
?streamTransferProgress : EventHandler<StreamTransferProgressArgs>
(* Defaults:
let _partSize = defaultArg partSize null
let _streamTransferProgress = defaultArg streamTransferProgress null
*)
-> PutObjectResult
Parameters
- bucketName
- Type: SystemString
Bucket instance - key
- Type: SystemString
Key instance - fileToUpload
- Type: SystemString
file to upload - metadata
- Type: Aliyun.OSSObjectMetadata
OssObject metadata - checkpointDir
- Type: SystemString
Check point dir. If it's not specified, then no checkpoint file is saved and thus resumable file upload is not supported. - partSize (Optional)
- Type: SystemNullableInt64
Part size. If it's not specified, or the size is smaller than PartSizeLowerLimit
then DefaultPartSize is used instead.
- streamTransferProgress (Optional)
- Type: SystemEventHandlerStreamTransferProgressArgs
[Missing <param name="streamTransferProgress"/> documentation for "M:Aliyun.OSS.IOss.ResumableUploadObject(System.String,System.String,System.String,Aliyun.OSS.ObjectMetadata,System.String,System.Nullable{System.Int64},System.EventHandler{Aliyun.OSS.StreamTransferProgressArgs})"]
Return Value
Type:
PutObjectResultPutObjectResult instance
See Also