!35 头像上传,VUE3后端界面中使用的是request.upload,对应的方法是post

Merge pull request !35 from 让无线电飞BG8GLR/N/A
This commit is contained in:
芋道源码 2023-06-17 06:25:08 +00:00 committed by Gitee
commit 0930c1ff73
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -96,7 +96,7 @@ public class UserProfileController {
return success(true);
}
@PutMapping("/update-avatar")
@PostMapping("/update-avatar")
@Operation(summary = "上传用户个人头像")
public CommonResult<String> updateUserAvatar(@RequestParam("avatarFile") MultipartFile file) throws Exception {
if (file.isEmpty()) {