ftp implementation

This commit is contained in:
Čarodej
2022-04-11 09:34:25 +02:00
parent 7740e1673f
commit fbc9eed30b
12 changed files with 192 additions and 83 deletions

View File

@@ -42,7 +42,7 @@ class UserSetting extends Model
$link = [];
// Get avatar from external storage
if ($this->attributes['avatar'] && ! isStorageDriver('local')) {
if ($this->attributes['avatar'] && isStorageDriver('s3')) {
foreach (config('vuefilemanager.avatar_sizes') as $item) {
$filePath = "avatars/{$item['name']}-{$this->attributes['avatar']}";