Skip to content

Commit 865934f

Browse files
ykztshiyuki2578
authored andcommitted
Cast multipart threshold to integer (mastodon#11944)
1 parent 6eed19b commit 865934f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/initializers/paperclip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
s3_protocol: s3_protocol,
2626
s3_host_name: s3_hostname,
2727
s3_headers: {
28-
'X-Amz-Multipart-Threshold' => ENV.fetch('S3_MULTIPART_THRESHOLD') { 15.megabytes },
28+
'X-Amz-Multipart-Threshold' => ENV.fetch('S3_MULTIPART_THRESHOLD') { 15.megabytes }.to_i,
2929
'Cache-Control' => 'public, max-age=315576000, immutable',
3030
},
3131
s3_permissions: ENV.fetch('S3_PERMISSION') { 'public-read' },

0 commit comments

Comments
 (0)