mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-27 18:40:39 +00:00
azure implementation
This commit is contained in:
@@ -85,7 +85,7 @@ class UploadFileAction
|
||||
// Move files to external storage
|
||||
match (config('filesystems.default')) {
|
||||
's3' => ($this->moveFileToExternalStorage)($fileName, $user->id),
|
||||
'ftp' => ($this->moveFileToFTPStorage)($fileName, $user->id),
|
||||
'ftp', 'azure' => ($this->moveFileToFTPStorage)($fileName, $user->id),
|
||||
};
|
||||
|
||||
// Create new file
|
||||
|
||||
@@ -101,7 +101,7 @@ class File extends Model
|
||||
->all();
|
||||
|
||||
// Generate thumbnail link for external storage service
|
||||
if ($this->type === 'image' && isStorageDriver('s3')) {
|
||||
if ($this->type === 'image' && isStorageDriver(['s3', 'azure'])) {
|
||||
foreach ($thumbnail_sizes as $item) {
|
||||
$filePath = "files/{$this->user_id}/{$item['name']}-{$this->basename}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user