This commit is contained in:
Damien Ostler 2024-02-15 00:58:18 -05:00
parent d6b55705e6
commit ca2af66c62

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([FromForm]IFormFile newImage) public async Task<IActionResult> AddPortfolio([FromBody]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);