Google Cloud Storage支持S3分段上传

编程入门 行业动态 更新时间:2024-10-22 12:19:05
本文介绍了Google Cloud Storage支持S3分段上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当前,我在互操作模式"下使用GCS使其接受S3 API请求.通过使用官方的分段上传示例此处(+设置了适当的端点),第一个启动POST请求:

Currenty, i'm using GCS in "interoperability mode" to make it accept S3 API requests. By using the official multipart upload example here (+ setting the appropriate endpoint), the first initiation POST request:

POST /bucket/object?uploads HTTP/1.1 Host: storage.googleapis Authorization: AWS KEY:SIGNATURE Date: Wed, 07 Jan 2015 13:34:04 GMT User-Agent: aws-sdk-java/1.7.5 Linux/3.13.0-43-generic Java_HotSpot(TM)_64-Bit_Server_VM/24.72-b04/1.7.0_72 Content-Type: application/x-www-form-urlencoded; charset=utf-8 Transfer-Encoding: chunked Connection: Keep-Alive

此响应的结果:

HTTP/1.1 400 Bad Request Content-Length: 55 Date: Wed, 07 Jan 2015 13:34:05 GMT Server: UploadServer ("Built on Dec 19 2014 ...") Content-Type: text/html; charset=UTF-8 Alternate-Protocol: 443:quic,p=0.02 The request's content type is not accepted on this URL.

这可能是AWS客户端问题还是GCS还不支持S3的分段上传?

Could that be an AWS client issue or GCS doesn't support S3's multipart upload yet?

我尝试过的大多数其他操作(下载对象,列出存储桶对象等)似乎都可以正常工作.

Most of the other actions i have tried (download object, list bucket objects etc) seem to work fine.

推荐答案

GSC不支持S3分段上传接口.如果要执行块并行上传,则可以使用对象组合-请参见 cloud.google/storage/docs/composite-objects

GSC doesn't support the S3 multipart upload interface. If you want to perform a chunk-parallel upload you can use object composition - see cloud.google/storage/docs/composite-objects

更多推荐

Google Cloud Storage支持S3分段上传

本文发布于:2023-11-26 17:55:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634591.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上传   Cloud   Google   Storage

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!