C# 클래스 Qiniu.Storage.FormUploader

数据或者文件的表单上传方式
파일 보기 프로젝트 열기: qiniu/csharp-sdk 1 사용 예제들

공개 메소드들

메소드 설명
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