From 28e07a1e7c9f902590b930ab577f34eb1cc07cf7 Mon Sep 17 00:00:00 2001 From: Damien Ostler <damien.ostler@data443.com> Date: Wed, 14 Feb 2024 23:13:22 -0500 Subject: [PATCH] fix: changed to body --- src/comissions.app.api/Controllers/SellerProfileController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comissions.app.api/Controllers/SellerProfileController.cs b/src/comissions.app.api/Controllers/SellerProfileController.cs index 1b3d4e9..4e9883f 100644 --- a/src/comissions.app.api/Controllers/SellerProfileController.cs +++ b/src/comissions.app.api/Controllers/SellerProfileController.cs @@ -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);