fix: loading file from form now for portfolio upload

This commit is contained in:
Damien Ostler 2024-02-14 23:09:33 -05:00
parent 742f5b02dd
commit 696b15ed1f

View File

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