diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 7d5e666af..b4628bff1 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -60,7 +60,7 @@ class AttachmentsController < ApplicationController value = value.to_i + 1 Rails.cache.write(cache_key, value, expires_in: 1.day) # send_data(response.body.force_encoding("UTF-8"), filename: filename, type: "application/octet-stream", disposition: 'attachment') - send_file(file, filename: filename, type: "application/octet-stream", disposition: 'attachment') + send_file(tmp_path, filename: filename, type: "application/octet-stream", disposition: 'attachment') end end