From d94ccb474840c9733ab253f89277bb7cdb6a5a9e Mon Sep 17 00:00:00 2001 From: panabonic Date: Mon, 5 Feb 2024 19:43:41 +0300 Subject: [PATCH] minor fix --- app/Http/Controllers/Api/Assets/UploadFileController.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Http/Controllers/Api/Assets/UploadFileController.php b/app/Http/Controllers/Api/Assets/UploadFileController.php index dff3530..f1dba2b 100644 --- a/app/Http/Controllers/Api/Assets/UploadFileController.php +++ b/app/Http/Controllers/Api/Assets/UploadFileController.php @@ -108,7 +108,6 @@ class UploadFileController extends Controller { } protected function uploadFromDirectFile($attributes = []) { - Storage::put("validating/" . ($attributes['name'] ?? 'unnamed'), $attributes['content']); $this->validateMime($attributes['mime']); $this->validateBodySize($attributes['Content-Length'], $attributes['content']); $path = $this->storeInFileSystem($attributes); @@ -166,7 +165,6 @@ class UploadFileController extends Controller { if (!array_key_exists($mime, $this->validMimes)) { throw new StoreResourceFailedException('Validation Error', [ 'Content-Type' => 'The Content Type sent is not valid', - 'mime' => $mime ]); } }