mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 12:22:03 +08:00
优化图片上传的安全判断
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user