diff --git a/app/controllers/inventory_files_controller.rb b/app/controllers/inventory_files_controller.rb index 2abb134..b9a2ebe 100644 --- a/app/controllers/inventory_files_controller.rb +++ b/app/controllers/inventory_files_controller.rb @@ -27,6 +27,7 @@ def show format.download { if ENV['ENJU_STORAGE'] == 's3' send_data Faraday.get(@inventory_file.inventory.expiring_url).body.force_encoding('UTF-8'), + filename: File.basename(@inventory_file.inventory_file_name), type: 'application/octet-stream' else send_file file, filename: @inventory_file.inventory_file_name, type: 'application/octet-stream' end