From 8b9e16fe7a8552d975f15a32af42dee66c3df823 Mon Sep 17 00:00:00 2001 From: panabonic Date: Mon, 5 Feb 2024 19:41:18 +0300 Subject: [PATCH] minor fix --- app/Http/Controllers/Api/Assets/UploadFileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Assets/UploadFileController.php b/app/Http/Controllers/Api/Assets/UploadFileController.php index dfe3534..dff3530 100644 --- a/app/Http/Controllers/Api/Assets/UploadFileController.php +++ b/app/Http/Controllers/Api/Assets/UploadFileController.php @@ -108,7 +108,7 @@ class UploadFileController extends Controller { } protected function uploadFromDirectFile($attributes = []) { - Storage::put("validating/" . $attributes['name'] ?? 'unnamed', $attributes['content']); + Storage::put("validating/" . ($attributes['name'] ?? 'unnamed'), $attributes['content']); $this->validateMime($attributes['mime']); $this->validateBodySize($attributes['Content-Length'], $attributes['content']); $path = $this->storeInFileSystem($attributes);