about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2019-09-25 00:32:12 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-09-24 17:32:12 +0200
commitb02169f124b8efefa33c10a14a5b45d5f9806e3d (patch)
tree53b1fc659808a6417424fa55468797ea9756c47e /config/initializers
parenta1f04c1e3497e9dff5970038461d9f454f2650df (diff)
Cast multipart threshold to integer (#11944)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/paperclip.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb
index cfc95330c..f308c2841 100644
--- a/config/initializers/paperclip.rb
+++ b/config/initializers/paperclip.rb
@@ -25,7 +25,7 @@ if ENV['S3_ENABLED'] == 'true'
     s3_protocol: s3_protocol,
     s3_host_name: s3_hostname,
     s3_headers: {
-      'X-Amz-Multipart-Threshold' => ENV.fetch('S3_MULTIPART_THRESHOLD') { 15.megabytes },
+      'X-Amz-Multipart-Threshold' => ENV.fetch('S3_MULTIPART_THRESHOLD') { 15.megabytes }.to_i,
       'Cache-Control' => 'public, max-age=315576000, immutable',
     },
     s3_permissions: ENV.fetch('S3_PERMISSION') { 'public-read' },