Fix for exports and other file downloads
This commit is contained in:
parent
06959ab278
commit
61eacae836
2 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
def send_file(file, options = {})
|
def send_file(file, options = {})
|
||||||
options[:type] ||= (FILE_TYPES[File.extname(file)] || 'application/octet-stream')
|
options[:type] ||= (FILE_TYPES[File.extname(file)] || 'application/octet-stream')
|
||||||
|
options[:stream] = false
|
||||||
super(file, options)
|
super(file, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'redcloth_for_tex'
|
require 'redcloth_for_tex'
|
||||||
require 'parsedate'
|
require 'parsedate'
|
||||||
|
require 'zip/zip'
|
||||||
|
|
||||||
class WikiController < ApplicationController
|
class WikiController < ApplicationController
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue