mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 20:23:14 +08:00
Fix processing_image_url for S3 storage [SCI-3381]
This commit is contained in:
parent
8b11cec953
commit
65fb4b1372
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ class Asset < ApplicationRecord
|
|||
end
|
||||
|
||||
def url(style = :original, timeout: Constants::URL_SHORT_EXPIRE_TIME)
|
||||
if file.is_stored_on_s3?
|
||||
if file.is_stored_on_s3? && !file.processing?
|
||||
presigned_url(style, timeout: timeout)
|
||||
else
|
||||
file.url(style)
|
||||
|
|
Loading…
Reference in a new issue