controller refactoring part 25

This commit is contained in:
Peter Papp
2021-07-22 07:49:25 +02:00
parent 6d8a7a429c
commit 5167f082f7
50 changed files with 252 additions and 481 deletions

View File

@@ -16,7 +16,7 @@ class MoveFileToExternalStorageAction
string $file,
string $user_id
): void {
$disk_local = \Storage::disk('local');
$disk_local = Storage::disk('local');
// Get file size
$filesize = $disk_local->size("files/$user_id/$file");
@@ -24,7 +24,7 @@ class MoveFileToExternalStorageAction
// If file is bigger than 5.2MB then run multipart upload
if ($filesize > 5242880) {
// Get driver
$driver = \Storage::getDriver();
$driver = Storage::getDriver();
// Get adapter
$adapter = $driver->getAdapter();