mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Merge pull request #1760 from okriuchykhin/ok_SCI_3381_v2
Fix processing_image_url for S3 storage [SCI-3381]
This commit is contained in:
commit
70c4094323
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