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

Static method from storage class for https://github.com/fog/fog/issues/3899

This commit is contained in:
Brett Cave 2016-07-29 09:15:34 +02:00
parent 03d30de6d6
commit ca995af100
No known key found for this signature in database
GPG key ID: C03499DC0E9CA275

View file

@ -205,7 +205,7 @@ module Fog
options['x-amz-storage-class'] = storage_class if storage_class
options.merge!(encryption_headers)
if multipart_chunk_size && get_body_size(body) >= multipart_chunk_size && body.respond_to?(:read)
if multipart_chunk_size && Fog::Storage.get_body_size(body) >= multipart_chunk_size && body.respond_to?(:read)
data = multipart_save(options)
merge_attributes(data.body)
else