Skip to content

Instantly share code, notes, and snippets.

@tanaka-takayoshi
Created April 4, 2015 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanaka-takayoshi/2a661aa5e589844c0dd3 to your computer and use it in GitHub Desktop.
Save tanaka-takayoshi/2a661aa5e589844c0dd3 to your computer and use it in GitHub Desktop.
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