Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/hyrax/downloads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand Down
Loading