@Html.ActionLink("Remove", "DeleteFile", "Home",
new { EId = Model.UploadedId, e = Model.FileExtension },
new { @class = "deleteFilet", @title = "Remove" })
[HttpPost]
public JsonResult DeleteFile(int EId, string e)
{
var filepath = Path.Combine(_uploadFilesPathTemp, EId + e);
if (System.IO.File.Exists(filepath))
System.IO.File.Delete(filepath);
return Json(true);
}
Monday, June 25, 2018
DELETE UPLOADED FILES IN ASP.NET MVC
Subscribe to:
Post Comments (Atom)
javascript Filter/index off
var family = [{"name":"Jack", "age": 26}, {"name":"Jill", "age"...
-
A3+C3 VLOOKUP(G3,$A$3:$B$10,2) sum Product Quantity Count Result 1 Mobile 2 1 Mobile 3 Keyboard 3 2 Mobile 6 TV 1 3 ...
-
EF CORE CLI > dotnet ef database update MyFirstMigration. Scaffold-DbContext Command Use Scaffold-DbContext to create a model based ...
No comments:
Post a Comment