Fix bug where S3 bucket wasn't always being set in the Settings file

This commit is contained in:
Eric Schultz 2018-06-05 13:55:56 -05:00
parent 8f95fac6a8
commit 12d27de5c0

View file

@ -3,7 +3,7 @@ module ChunkedUploader
class S3
MINIMUMBUFFER_SIZE = 5.megabytes
S3_BUCKET_NAME = ENV['S3_BUCKET_NAME']
S3_BUCKET_NAME = Settings.aws.bucket_name
# Upload a string to s3 using chunks instead of all as one string. This is useful reducing memory usage on huge files
# @param [Enumerable<String>] chunk_enum an enumerable of strings.