mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 04:02:48 +08:00
Fix text extraction for cloned files [SCI-10227] (#7101)
This commit is contained in:
parent
da8f2ff217
commit
156f9bda9c
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ class Asset < ApplicationRecord
|
|||
raise ArgumentError, 'Destination asset should be persisted first!' unless to_asset.persisted?
|
||||
|
||||
file.blob.open do |tmp_file|
|
||||
to_blob = ActiveStorage::Blob.create_and_upload!(io: tmp_file, filename: blob.filename, metadata: blob.metadata)
|
||||
to_blob = ActiveStorage::Blob.create_and_upload!(io: tmp_file, filename: blob.filename)
|
||||
to_asset.file.attach(to_blob)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue