ufilesdk-dev / ufile-gosdk

UCloud 对象存储官方 SDK
https://www.ucloud.cn/
Apache License 2.0
34 stars 27 forks source link

can you add a upload file operation: convey the file binary content #10

Closed adamydwang closed 5 years ago

adamydwang commented 5 years ago

we often use sdk to pull image to ufile. and the image we extract from video and the image has been loaded in memory such as a []byte. so can u add a new operation, which will be more convinient

leyafo commented 5 years ago

OK, I will made a io.Writer interface for put and mput upload. It will done by this weekend.

leyafo commented 5 years ago

hi @adamydwang I made two io.reader upload interfaces. this is the API document.

mutipart upload: https://godoc.org/github.com/ufilesdk-dev/ufile-gosdk#UFileRequest.IOMutipartAsyncUpload

put upload: https://godoc.org/github.com/ufilesdk-dev/ufile-gosdk#UFileRequest.IOPut

Thank you for using UFile. Have fun for you happy conding.