Skip to content

Commit aaacfd9

Browse files
authored
Merge pull request rails#34550 from mogulla3/fix-argument-error-when-uploding-to-s3
Fix `ArgumentError` when uploading to amazon s3
2 parents 4b5c4ca + 4deb88c commit aaacfd9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

activestorage/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Fix `ArgumentError` when uploading to amazon s3
2+
3+
*Hiroki Sanpei*
4+
15
* Add progressive JPG to default list of variable content types
26

37
*Maurice Kühlborn*

activestorage/lib/active_storage/service/s3_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def initialize(bucket:, upload: {}, **options)
1616
@upload_options = upload
1717
end
1818

19-
def upload(key, io, checksum: nil)
19+
def upload(key, io, checksum: nil, **)
2020
instrument :upload, key: key, checksum: checksum do
2121
begin
2222
object_for(key).put(upload_options.merge(body: io, content_md5: checksum))

0 commit comments

Comments
 (0)