From 7d84c291276ae7ad20bcc0ff7c2159a14e316277 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Wed, 14 Feb 2024 23:48:38 -0500 Subject: [PATCH] fix --- 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 83bf312..63d40be 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 AddPortfolio(IFormFile file) + public async Task AddPortfolio([FromForm]IFormFile file) { var userId = User.GetUserId(); var existingSellerProfile = await _dbContext.UserSellerProfiles.FirstOrDefaultAsync(sellerProfile=>sellerProfile.UserId==userId);