Skip to content

Commit

Permalink
dev bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ferbcn committed Jun 10, 2024
1 parent 674a58e commit aadbd6f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Controllers/UploadController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,8 @@ public async Task<IActionResult> OnPostUploadAsync(IFormFile formFile, int thres

return View("Image");
}

var mes = "";

if (formFile.ContentType.Contains("presentation") && formFile.ContentType.Contains("officedocument"))
{
PowerPointConverter.convert(new string[] { filePath });
}

mes = "Not and Image";
var mes = "Not and Image";
// Process uploaded files
// Don't rely on or trust the FileName property without validation.
return Ok(new { mes });
Expand Down

0 comments on commit aadbd6f

Please sign in to comment.