2015-01-07 9 views
0

현재 "상호 운용성 모드"에서 GCS를 사용하여 S3 API 요청을 허용합니다. 공식 다중 업로드 예 here을 사용하여 (해당 엔드 포인트를 설정 +), 최초의 개시 POST 요청이 응답S3 멀티플 업로드의 Google Cloud Storage 지원

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 

결과 :

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의 멀티 파트 업로드를 아직 지원하지 않습니까?

대부분의 다른 작업 (다운로드 객체, 목록 버킷 개체 등)은 정상적으로 작동하는 것 같습니다.

답변

1

GSC는 S3 멀티 파트 업로드 인터페이스를 지원하지 않습니다. 청크 병렬 업로드를 수행하려는 경우 오브젝트 구성을 사용할 수 있습니다. https://cloud.google.com/storage/docs/composite-objects

+0

감사 Mike를 참조하십시오. 이 "객체 구성"XML API는 GCS에서만 사용 가능합니다 (S3에서는 지원되지 않음). 맞습니까? 그렇다면 GCS 네이티브 [resumable] (https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#resumable) 또는 [multipart]를 사용하는 것이 더 나은지 확인해야합니다. (https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#multipart) 직접 API를 업로드하십시오. – user4201983

+0

예, 객체 합성 API는 GCS와 관련이 있습니다. 그런데 한 가지 다른 의견 : GCS JSON API는 멀티 파트 업로드 인터페이스 (https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#multipart)를 지원하지만 동일하지 않습니다. S3 병렬 업로드 API로 –

관련 문제