make queue for thumbnails generation

This commit is contained in:
Milos Holba
2021-11-30 15:49:33 +01:00
parent 73cd950054
commit 067c123aa8
12 changed files with 240 additions and 1527 deletions

View File

@@ -69,12 +69,13 @@ class UploadFileAction
// Check if user has enough space to upload file
($this->checkStorageCapacity)($user_id, $fileSize, $chunkName);
// Create multiple image thumbnails
($this->createImageThumbnail)($fileName, $file, $user_id);
// Move finished file from chunk to file-manager directory
$disk_local->move("chunks/$chunkName", "files/$user_id/$fileName");
// Create multiple image thumbnails
($this->createImageThumbnail)($fileName, $file, $user_id);
// Move files to external storage
if (! is_storage_driver(['local'])) {
($this->moveFileToExternalStorage)($fileName, $user_id);