Skip to content

Commit

Permalink
Cast multipart threshold to integer (mastodon#11944)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts authored and hiyuki2578 committed Oct 2, 2019
1 parent 6eed19b commit 865934f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/paperclip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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' },
Expand Down

0 comments on commit 865934f

Please sign in to comment.