|
|
|
@ -207,6 +207,7 @@ class AttachmentsController < ApplicationController
|
|
|
|
|
def send_file_with_range(path, options = {})
|
|
|
|
|
if File.exist?(path)
|
|
|
|
|
size = File.size(path)
|
|
|
|
|
logger.info("########request.headers: #{request.headers}")
|
|
|
|
|
if !request.headers["Range"]
|
|
|
|
|
status_code = 200 # 200 OK
|
|
|
|
|
offset = 0
|
|
|
|
|