|
|
@ -205,6 +205,9 @@ class AttachmentsController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def send_file_with_range(path, options = {})
|
|
|
|
def send_file_with_range(path, options = {})
|
|
|
|
|
|
|
|
logger.info("########request.headers: #{request.headers}")
|
|
|
|
|
|
|
|
logger.info("########request.headers: #{File.exist?(path)}")
|
|
|
|
|
|
|
|
|
|
|
|
if File.exist?(path)
|
|
|
|
if File.exist?(path)
|
|
|
|
size = File.size(path)
|
|
|
|
size = File.size(path)
|
|
|
|
logger.info("########request.headers: #{request.headers}")
|
|
|
|
logger.info("########request.headers: #{request.headers}")
|
|
|
|