File Upload to server hard disk in asp.net
-
How to upload file in asp.net 2.0 to server hard disk from client side and down load file
Drag nd Drop Html control input(file) nd in code behind write following code string fn = System.IO.Path.GetFileName(YourfileName.PostedFile.FileName); string SaveLocation = Server.MapPath("FolderName") + "\\" + fn; YourfileName.PostedFile.SaveAs(SaveLocation); Response.Write(fn + " Has been uploaded to " + SaveLocation); Instead of "YourfileName" use de id of input(file) control nd FolderName is de name of de folder on server in which to upload de file. i think it will solve ur problem.
-
How to upload file in asp.net 2.0 to server hard disk from client side and down load file
You can use the file upload component use the and use the .SaveAs(filename) method to save at the server side. Thanks,
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me