Created
April 4, 2015 13:51
-
-
Save tanaka-takayoshi/2a661aa5e589844c0dd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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