diff --git a/app/controllers/hyrax/downloads_controller.rb b/app/controllers/hyrax/downloads_controller.rb index 2fa92033..bf60da81 100644 --- a/app/controllers/hyrax/downloads_controller.rb +++ b/app/controllers/hyrax/downloads_controller.rb @@ -47,7 +47,7 @@ def send_file_contents else Aws::S3::Object.new(ENV['AWS_BUCKET'], file.digest.first.to_s.gsub('urn:sha1:', '')) end - if s3_object.exists? + # if s3_object.exists? STDERR.puts "##################################" STDERR.puts "Redirecting to S3 using the filename #{file.original_name}" STDERR.puts "File object: #{file}" @@ -57,7 +57,7 @@ def send_file_contents response_content_disposition: "attachment\; filename=#{file.original_name}" ) return - end + # end end # from here on this is effectively `super` if this was a decorator # will fall back to streaming object via fedora