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

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