DaniWeb IT Discussion Community

Code Snippets (http://www.daniweb.com/code/)
-   aspnet (http://www.daniweb.com/code/aspnet.html)
-   -   FileUpload Control - Shalvin (http://www.daniweb.com/code/snippet838.html)

Shalvin aspnet syntax
Mar 12th, 2008
Uploading a file to a specific folder inside the virtual directory.

  1. FileUpload1.SaveAs(Server.MapPath("~/") + "Photos\\Shalvin\\" + FileUpload1.FileName);
  2. Response.Write("File uploaded successfully");