fix: changed to body

This commit is contained in:
Damien Ostler 2024-02-14 23:13:22 -05:00
parent 696b15ed1f
commit 28e07a1e7c

View File

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