mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix syntax error
This commit is contained in:
parent
b472feddbc
commit
393df7425f
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ module ActiveStorage
|
|||
def url_for_direct_upload(key, expires_in:, content_type:, content_length:, checksum:)
|
||||
instrument :url, key: key do |payload|
|
||||
generated_url = object_for(key).presigned_url :put, expires_in: expires_in.to_i,
|
||||
content_type: content_type, content_length: content_length, content_md5: checksum
|
||||
whitelist_headers: ['content-length'], **upload_options
|
||||
content_type: content_type, content_length: content_length, content_md5: checksum,
|
||||
whitelist_headers: ["content-length"], **upload_options
|
||||
|
||||
payload[:url] = generated_url
|
||||
|
||||
|
|
Loading…
Reference in a new issue