diff options
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/Api/Api/Controllers/UserController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/Api/Api/Controllers/UserController.cs b/Backend/Api/Api/Controllers/UserController.cs index 965ad6b..d4a9cb7 100644 --- a/Backend/Api/Api/Controllers/UserController.cs +++ b/Backend/Api/Api/Controllers/UserController.cs @@ -17,7 +17,7 @@ namespace Api.Controllers } [HttpPost("profile/pfp")] [Authorize(Roles = "User")] - public async Task<ActionResult<User>> setPfp(IFormFile image) + public async Task<ActionResult<User>> setPfp([FromForm]IFormFile image) { var id = await _userService.UserIdFromJwt(); if(await _userService.AddOrChangePfp(id,image)) |