mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
Change wopi_controller using Paperclip for reading
This commit is contained in:
parent
29ffe05442
commit
cc561d8ee5
|
@ -12,7 +12,7 @@ class WopiController < ActionController::Base
|
|||
def file_contents_get_endpoint
|
||||
# get_file
|
||||
response.headers['X-WOPI-ItemVersion'] = @asset.version
|
||||
response.body = Paperclip.io_adapters.for(@asset.file).read
|
||||
response.body = @asset.file.download
|
||||
send_data response.body, disposition: 'inline', content_type: 'text/plain'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue