From 52eed68e398195e536b99181f644232621f938b3 Mon Sep 17 00:00:00 2001
From: George Claghorn <george@basecamp.com>
Date: Mon, 24 Jul 2017 12:41:34 -0400
Subject: Verify direct upload checksums

Closes #74.
---
 app/models/active_storage/blob.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'app')

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
 
 
-- 
cgit v1.2.3