mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
fix: loading file from form now for portfolio upload
This commit is contained in:
parent
742f5b02dd
commit
696b15ed1f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user