diff --git a/app/controllers/cms/content_controller.rb b/app/controllers/cms/content_controller.rb index 58bed6dcb..5cfbbe9a8 100644 --- a/app/controllers/cms/content_controller.rb +++ b/app/controllers/cms/content_controller.rb @@ -150,7 +150,7 @@ def is_file? def try_to_stream_file if is_file? - @attachment = Attachment.find_live_by_file_path(request.fullpath) + @attachment = Attachment.find_live_by_file_path(request.fullpath.split('?').first) send_attachment(@attachment) end