Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class PackagesController : Controller
{
public ActionResult Index()
{
return View();
}
[HttpPost]
public ActionResult Upload(HttpPostedFileWrapper uploadFile)
{
uploadFile?.SaveAs(Path.Combine(Server.MapPath("~/PackageBin"), uploadFile.FileName));
return RedirectToAction("Index");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.