diff --git a/app/common/controller/UploadController.php b/app/common/controller/UploadController.php index 678034b..d90c84a 100644 --- a/app/common/controller/UploadController.php +++ b/app/common/controller/UploadController.php @@ -170,6 +170,8 @@ class UploadController 'original_name' => $file->getUploadName(), ]; + $partition = !empty($partition)?$partition:'other'; + $category = !empty($category)?$category:'other'; $recordResult = $uploadedFilesService->recordFileInfo($fileInfo, $request, $partition, $category); $data = []; $data['file_id'] = $recordResult['id'];