Click here to Skip to main content
15,917,565 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can any one help me
how to upload a file using FileUpload in VB.NET and i want to store in my local drive ie.(E:\Samp) and file formats are doc and pdf

I declared this code..

Dim strfileDir As String = Server.MapPath("E:\uno4.0\ReportFiles\")
Posted
Comments
bbirajdar 1-Nov-12 4:48am    
No offence but you should learn some basics of .net before starting to work on a .net project. Your statements says that you need to store the files in local folder, but the code you have written has nothing to do with file upload. Also Server.MapPath needs a relative path as argument

1 solution

Use UploadFile method of System.Net.WebClient to upload file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900