This commit is contained in:
Damien Ostler 2024-02-14 23:48:38 -05:00
parent 0ace08640b
commit 7d84c29127

View File

@ -153,7 +153,7 @@ public class SellerProfileController : Controller
[HttpPost] [HttpPost]
[Route("Portfolio")] [Route("Portfolio")]
[Authorize("write:seller-profile")] [Authorize("write:seller-profile")]
public async Task<IActionResult> AddPortfolio(IFormFile file) public async Task<IActionResult> AddPortfolio([FromForm]IFormFile file)
{ {
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);