C# Класс Qiniu.Storage.FormUploader

数据或者文件的表单上传方式
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

以表单方式上传数据流

Приватные методы

Метод Описание
upload ( HttpFormFile fFile, string key, string token, Qiniu.Storage.UploadOptions uploadOptions, UpCompletionHandler upCompletionHandler ) : void

Описание методов

FormUploader() публичный Метод

public FormUploader ( ) : System
Результат System

uploadData() публичный Метод

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
Результат void

uploadData() публичный Метод

以表单方式上传字节数据
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 上传完成结果处理器
Результат void

uploadFile() публичный Метод

上传文件
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 上传完成结果处理器
Результат void

uploadStream() публичный Метод

以表单方式上传数据流
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 上传完成结果处理器
Результат void