mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1967 from burns/aws_complete_multipart
[aws|storage] parse #complete_multipart_upload error
This commit is contained in:
commit
7f5b0b4931
2 changed files with 7 additions and 3 deletions
|
@ -11,7 +11,7 @@ module Fog
|
|||
|
||||
def end_element(name)
|
||||
case name
|
||||
when 'Bucket', 'ETag', 'Key', 'Location'
|
||||
when 'Bucket', 'ETag', 'Key', 'Location', 'Code', 'Message'
|
||||
@response[name] = value
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,12 +13,16 @@ module Fog
|
|||
# @param [Array<String>] parts Array of etags as Strings for parts
|
||||
#
|
||||
# @return [Excon::Response]
|
||||
# * headers [Hash]:
|
||||
# * body [Hash]: (success)
|
||||
# * Bucket [String] - bucket of new object
|
||||
# * ETag [String] - etag of new object (will be needed to complete upload)
|
||||
# * ETag [String] - etag of new object
|
||||
# * Key [String] - key of new object
|
||||
# * Location [String] - location of new object
|
||||
# * body [Hash]: (failure)
|
||||
# * Code [String] - Error status code
|
||||
# * Message [String] - Error description
|
||||
#
|
||||
# @note This request could fail and still return +200 OK+, so it's important that you check the response.
|
||||
# @see http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html
|
||||
#
|
||||
def complete_multipart_upload(bucket_name, object_name, upload_id, parts)
|
||||
|
|
Loading…
Reference in a new issue