mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Raise an error (on the setter) if chunk size is too small - fixes #283
This commit is contained in:
parent
ca995af100
commit
0f5ff953ba
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,11 @@ module Fog
|
|||
|
||||
# @note Chunk size to use for multipart uploads.
|
||||
# Use small chunk sizes to minimize memory. E.g. 5242880 = 5mb
|
||||
attr_accessor :multipart_chunk_size
|
||||
attr_reader :multipart_chunk_size
|
||||
def multipart_chunk_size=(mp_chunk_size)
|
||||
raise ArgumentError.new("minimum multipart_chunk_size is 5242880") if mp_chunk_size < 5242880
|
||||
@multipart_chunk_size = mp_chunk_size
|
||||
end
|
||||
|
||||
def acl
|
||||
requires :directory, :key
|
||||
|
|
Loading…
Add table
Reference in a new issue