Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Storage support of S3 multipart upload

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.com
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

results in this response:

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.

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.

like image 697
user4201983 Avatar asked Dec 25 '22 00:12

user4201983


1 Answers

Google Cloud Storage (GCS) now supports the S3-style multipart upload API. As such, use cases like the one in this question should just work.

like image 164
Dom Zippilli Avatar answered Feb 07 '23 22:02

Dom Zippilli