mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix: 避免gcp创建创建文件夹失败
This commit is contained in:
@@ -512,7 +512,7 @@ func (region *SRegion) PutObject(bucket string, name string, input io.Reader, si
|
||||
params.Set("uploadType", "media")
|
||||
header := http.Header{}
|
||||
header.Set("Content-Length", fmt.Sprintf("%v", sizeBytes))
|
||||
|
||||
name = url.QueryEscape(name)
|
||||
err := region.UploadObject(bucket, params, header, input)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "UploadObject")
|
||||
|
||||
Reference in New Issue
Block a user