mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
Merge pull request #2006 from okriuchykhin/ok_SCI_3765
Add path method to custom ActiveStorage S3 service [SCI-3765]
This commit is contained in:
commit
0d6f011e61
1 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,10 @@ module ActiveStorage
|
|||
{ 'Content-Type' => content_type, 'Content-MD5' => checksum }
|
||||
end
|
||||
|
||||
def path_for(key)
|
||||
subfolder.present? ? File.join(subfolder, key) : key
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
MAXIMUM_UPLOAD_PARTS_COUNT = 10000
|
||||
|
|
Loading…
Reference in a new issue