Re: How do I can upload serveral files at same tim (General questions)
I used the block model the progress event is not work before the progress is 100 .
the code you offered for uploading is the one by one way, I want to upload files at same time, as the following code, but the result is not my expect result:
void DownloadFiles(string[] files)
{
while(localFiles.Count>0)
{
System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(Dowork));
t.Start();
}
}
void Dowork()
{
if (localFiles.Count == 0) return;
string file = localFiles[0];
localFiles.Remove(file);
wodFtpDLXComClass ftp = new wodFtpDLXComClass();
ftp.Blocking = true;
ftp.Connect(hostName, port, protocol);
ftp.PutFile(file, remoteFilePath);
}
Complete thread:
- How do I can upload serveral files at same time? - yinpengxiang, 2009-08-25, 10:45
- Re: How do I can upload serveral files at same tim - wodDamir, 2009-08-25, 11:40
- Re: How do I can upload serveral files at same tim - yinpengxiang, 2009-08-25, 12:13
- Re: How do I can upload serveral files at same tim - wodDamir, 2009-08-25, 13:05
- Re: How do I can upload serveral files at same tim - yinpengxiang, 2009-08-25, 15:18
- Re: How do I can upload serveral files at same tim - wodDamir, 2009-08-25, 16:02
- Re: How do I can upload serveral files at same tim - yinpengxiang, 2009-08-25, 15:18
- Re: How do I can upload serveral files at same tim - wodDamir, 2009-08-25, 13:05
- Re: How do I can upload serveral files at same tim - yinpengxiang, 2009-08-25, 12:13
- Re: How do I can upload serveral files at same tim - wodDamir, 2009-08-25, 11:40