Click here to Skip to main content
15,914,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to upload image to server using open file dialogue via windows application c#...I want to map it into the C drive in server and want to avoid read write permission too.....
Posted
Updated 19-Apr-13 1:45am
v3
Comments
ZurdoDev 19-Apr-13 7:41am    
Just save them to the server. Where are you stuck?
Korathu 2 19-Apr-13 8:12am    
Can you provide the code..I want to access network folder and upload to it..

1 solution

>Can you provide the code..I want to access network folder and upload to it..

You can use the OpenFileDialog like this:
C#
string Pfad = string.Empty;

OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
if(openFileDialog1.ShowDialog() == DialogResult.OK)
    Pfad = openFileDialog1.FileName;


After the dialog is opened, just choose your network server and click on "Save"
 
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