C# Class Qiniu.Storage.FormUploader

数据或者文件的表单上传方式
Show file Open project: qiniu/csharp-sdk Class Usage Examples

Public Methods

Method Description
FormUploader ( ) : System
uploadData ( byte data, int offset, int count, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void
uploadData ( byte data, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void

以表单方式上传字节数据

uploadFile ( string filePath, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void

上传文件

uploadStream ( Stream stream, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void

以表单方式上传数据流

Private Methods

Method Description
upload ( HttpFormFile fFile, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void

Method Details

FormUploader() public method

public FormUploader ( ) : System
return System

uploadData() public method

public uploadData ( byte data, int offset, int count, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void
data byte
offset int
count int
key string
token string
uploadOptions Qiniu.Storage.UploadOptions
upCompletionHandler UpCompletionHandler
return void

uploadData() public method

以表单方式上传字节数据
public uploadData ( byte data, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void
data byte 字节数据
key string 保存在七牛的文件名
token string 上传凭证
uploadOptions Qiniu.Storage.UploadOptions 上传可选设置
upCompletionHandler UpCompletionHandler 上传完成结果处理器
return void

uploadFile() public method

上传文件
public uploadFile ( string filePath, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void
filePath string 文件的完整路径
key string 保存在七牛的文件名
token string 上传凭证
uploadOptions Qiniu.Storage.UploadOptions 上传可选设置
upCompletionHandler UpCompletionHandler 上传完成结果处理器
return void

uploadStream() public method

以表单方式上传数据流
public uploadStream ( Stream stream, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void
stream Stream 文件数据流
key string 保存在七牛的文件名
token string 上传凭证
uploadOptions Qiniu.Storage.UploadOptions 上传可选设置
upCompletionHandler UpCompletionHandler 上传完成结果处理器
return void