Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello,

I'm doing a Networking Project. In that, I don't know how to upload multiple files.
Please help me. It's urgent.
Posted
Updated 24-Aug-10 8:27am
v2
Comments
Per Söderlund 24-Aug-10 8:21am    
what does your project look like and where in the code do you want to upload/download files?
I'm guessing you have a server application and client application.
mehalanandu 24-Aug-10 8:40am    
n server and client applicatn
J a a n s 24-Aug-10 8:56am    
http://wordweb.info/ should be a good place to start on your spellings.
R. Giskard Reventlov 24-Aug-10 9:28am    
Have you tried searching here or google for your rather large requirement?
LittleYellowBird 24-Aug-10 9:29am    
Hi, you really do need to improve your English to use this forum, 'n server and client applicatn' could be 'not server and client application' OR 'in server and client application' and is not really an answer whatever it means. Plus you need to add more information about your project, no one can help unless to explain clearly and concisely what your problem is. OK? :)

1 solution

This is your 8th question here. You should be aware by now of how to ask a question to get a proper response.

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

Rest as already others have pointed out avoid using 'urgent' word, text speak, etc.
Further, you have not framed your question properly.

Looks like it's a windows application. Simplest would be to try having a UI to support multiple uploads via multiple upload control.
 
Share this answer
 
Comments
mehalanandu 25-Aug-10 2:02am    
public partial class Normal_File : Form
{

string fileDes,fileini;
int len;
public Normal_File()
{
InitializeComponent();
}
private void Normal_File_Load(object sender, EventArgs e)
{

btnSend.Enabled = false;
this.openFileDialog1.Multiselect = true;


}

private void btnOpen_Click(object sender, EventArgs e)
{
DialogResult dr = this.openFileDialog1.ShowDialog();
if (dr == System.Windows.Forms.DialogResult.OK)
{
foreach (string file in openFileDialog1.FileNames)
{
txtFilePath.Text = "";
openFileDialog1.ShowDialog();
txtFilePath.Text = openFileDialog1.FileName;
fileDes = openFileDialog1.FileName;
if (fileDes == "openFileDialog1")
{
lblError.Text = "";
lblError.Text = "Select a File first";
txtFilePath.Text = "";
btnSend.Enabled = false;
}
else
{
len = fileDes.Length;
fileini = fileDes.Substring(fileDes.IndexOf("\") + 1);
btnSend.Enabled = true;
}


}
}
this is was i tried,but it is not retrieved the files.......plz,help me.

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