Fix upload path when not using fog with cloud storage
This commit is contained in:
parent
c899e7983c
commit
2a017c8b11
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue