diff options
author | George Claghorn <george@basecamp.com> | 2017-07-24 12:41:34 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-07-24 12:41:34 -0400 |
commit | 52eed68e398195e536b99181f644232621f938b3 (patch) | |
tree | 463cb0b3db9cd5fec0ca806a02c1f820753a68e2 /app | |
parent | 69922fc7154fb0b99031b3215f42bb0124715608 (diff) | |
download | rails-52eed68e398195e536b99181f644232621f938b3.tar.gz rails-52eed68e398195e536b99181f644232621f938b3.tar.bz2 rails-52eed68e398195e536b99181f644232621f938b3.zip |
Verify direct upload checksums
Closes #74.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/active_storage/blob.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/active_storage/blob.rb b/app/models/active_storage/blob.rb index 3340c88d12..ec8bbd653b 100644 --- a/app/models/active_storage/blob.rb +++ b/app/models/active_storage/blob.rb @@ -61,7 +61,7 @@ class ActiveStorage::Blob < ActiveRecord::Base end def url_for_direct_upload(expires_in: 5.minutes) - service.url_for_direct_upload key, expires_in: expires_in, content_type: content_type, content_length: byte_size + service.url_for_direct_upload key, expires_in: expires_in, content_type: content_type, content_length: byte_size, checksum: checksum end |