mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +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.attach_file_version(io: StringIO.new,
|
||||
filename: "#{params[:file_name]}.#{params[:file_type]}",
|
||||
content_type: wopi_content_type(params[:file_type]),
|
||||
current_user: current_user)
|
||||
content_type: wopi_content_type(params[:file_type]))
|
||||
|
||||
unless asset.valid?(:wopi_file_creation)
|
||||
render json: {
|
||||
|
|
Loading…
Reference in a new issue