优化图片上传的安全判断

This commit is contained in:
none
2023-03-09 10:14:39 +08:00
parent da74e6425d
commit 4a012afaea
2 changed files with 8 additions and 17 deletions

View File

@@ -36,8 +36,8 @@ public class UploadController {
@Autowired
private ResourceService resourceService;
@PostMapping("/file")
public JsonResponse file(@RequestParam HashMap<String, Object> params, MultipartFile file) throws ServiceException {
@PostMapping("/minio")
public JsonResponse uploadMinio(@RequestParam HashMap<String, Object> params, MultipartFile file) throws ServiceException {
String categoryIds = MapUtils.getString(params, "category_ids");
Resource res = uploadService.storeMinio(file, categoryIds);
return JsonResponse.data(res);