diff --git a/lib/fog/aws/parsers/storage/complete_multipart_upload.rb b/lib/fog/aws/parsers/storage/complete_multipart_upload.rb index 9e6db8f56..b12cc7218 100644 --- a/lib/fog/aws/parsers/storage/complete_multipart_upload.rb +++ b/lib/fog/aws/parsers/storage/complete_multipart_upload.rb @@ -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 diff --git a/lib/fog/aws/requests/storage/complete_multipart_upload.rb b/lib/fog/aws/requests/storage/complete_multipart_upload.rb index 1ed7b18ef..18d7b77ff 100644 --- a/lib/fog/aws/requests/storage/complete_multipart_upload.rb +++ b/lib/fog/aws/requests/storage/complete_multipart_upload.rb @@ -13,12 +13,16 @@ module Fog # @param [Array] 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)