1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|storage] parse #complete_multipart error

This commit is contained in:
Brian D. Burns 2013-07-19 06:21:00 -04:00
parent 2340c8029e
commit 95d3daf13b
2 changed files with 7 additions and 3 deletions

View file

@ -11,7 +11,7 @@ module Fog
def end_element(name) def end_element(name)
case name case name
when 'Bucket', 'ETag', 'Key', 'Location' when 'Bucket', 'ETag', 'Key', 'Location', 'Code', 'Message'
@response[name] = value @response[name] = value
end end
end end

View file

@ -13,12 +13,16 @@ module Fog
# @param [Array<String>] parts Array of etags as Strings for parts # @param [Array<String>] parts Array of etags as Strings for parts
# #
# @return [Excon::Response] # @return [Excon::Response]
# * headers [Hash]: # * body [Hash]: (success)
# * Bucket [String] - bucket of new object # * 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 # * Key [String] - key of new object
# * Location [String] - location 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 # @see http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html
# #
def complete_multipart_upload(bucket_name, object_name, upload_id, parts) def complete_multipart_upload(bucket_name, object_name, upload_id, parts)