mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
Fix WOPI file creation [SCI-11049]
This commit is contained in:
parent
fb94790743
commit
100c84732d
1 changed files with 1 additions and 2 deletions
|
@ -244,8 +244,7 @@ class AssetsController < ApplicationController
|
||||||
asset = Asset.new(created_by: current_user, team: current_team)
|
asset = Asset.new(created_by: current_user, team: current_team)
|
||||||
asset.attach_file_version(io: StringIO.new,
|
asset.attach_file_version(io: StringIO.new,
|
||||||
filename: "#{params[:file_name]}.#{params[:file_type]}",
|
filename: "#{params[:file_name]}.#{params[:file_type]}",
|
||||||
content_type: wopi_content_type(params[:file_type]),
|
content_type: wopi_content_type(params[:file_type]))
|
||||||
current_user: current_user)
|
|
||||||
|
|
||||||
unless asset.valid?(:wopi_file_creation)
|
unless asset.valid?(:wopi_file_creation)
|
||||||
render json: {
|
render json: {
|
||||||
|
|
Loading…
Reference in a new issue