Google云端存储,对象插入?

时间:2016-10-11 01:56:25

标签: go google-cloud-storage

当我从r.FormFile("name") *http.Request收到文件(f),文件标题(fh)和错误(err)时。当我尝试将对象保存到存储桶中时:

service.Objects.Insert("bucketName", f).Do()

我的类型不匹配,multipart.File!= *storage.Object

我怀疑我可能需要io.Copy ...

0 个答案:

没有答案