Fix upload path when not using fog with cloud storage

This commit is contained in:
Karina Kwiatek 2022-07-02 10:19:32 +02:00 committed by Karina Kwiatek
parent c899e7983c
commit 2a017c8b11
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ class BaseUploader < CarrierWave::Uploader::Base
end
def paperclip_path
return "system/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank?
"users/:attachment/:id_partition/:style/:basename.:extension"
end