mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #34550 from mogulla3/fix-argument-error-when-uploding-to-s3
Fix `ArgumentError` when uploading to amazon s3
This commit is contained in:
commit
aaacfd90da
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
* Fix `ArgumentError` when uploading to amazon s3
|
||||
|
||||
*Hiroki Sanpei*
|
||||
|
||||
* Add progressive JPG to default list of variable content types
|
||||
|
||||
*Maurice Kühlborn*
|
||||
|
|
|
@ -16,7 +16,7 @@ module ActiveStorage
|
|||
@upload_options = upload
|
||||
end
|
||||
|
||||
def upload(key, io, checksum: nil)
|
||||
def upload(key, io, checksum: nil, **)
|
||||
instrument :upload, key: key, checksum: checksum do
|
||||
begin
|
||||
object_for(key).put(upload_options.merge(body: io, content_md5: checksum))
|
||||
|
|
Loading…
Reference in a new issue