dev_ec
cxt 6 years ago
parent 110fbbc87b
commit 9e68757d50

@ -20,10 +20,8 @@ class ZipdownController < ApplicationController
begin
if params[:base64file]
file = decode64(params[:base64file])
Rails.logger.info("##################detect_content_type: #{detect_content_type(file)}")
send_file "#{OUTPUT_FOLDER}/#{file}", :filename => filename_for_content_disposition(file), :type => detect_content_type(file)
else
Rails.logger.info("##################detect_content_type: #{detect_content_type(params[:file])}")
send_file "#{OUTPUT_FOLDER}/#{params[:file]}", :filename => filename_for_content_disposition(params[:filename]), :type => detect_content_type(params[:file])
end
rescue => e

Loading…
Cancel
Save