fix: change back to form

This commit is contained in:
Damien Ostler 2024-02-15 00:28:57 -05:00
parent dd1d5cd6dd
commit d6b55705e6

View File

@ -154,7 +154,7 @@ public class SellerProfileController : Controller
[HttpPost] [HttpPost]
[Route("Portfolio")] [Route("Portfolio")]
[Authorize("write:seller-profile")] [Authorize("write:seller-profile")]
public async Task<IActionResult> AddPortfolio([FromBody]IFormFile newImage) public async Task<IActionResult> AddPortfolio([FromForm]IFormFile newImage)
{ {
var userId = User.GetUserId(); var userId = User.GetUserId();
var existingSellerProfile = await _dbContext.UserSellerProfiles.FirstOrDefaultAsync(sellerProfile=>sellerProfile.UserId==userId); var existingSellerProfile = await _dbContext.UserSellerProfiles.FirstOrDefaultAsync(sellerProfile=>sellerProfile.UserId==userId);