hi karl,
thanks for ur reply
i am trying to upload contents of a full folder using
private const string SERVER_FOLDER = @"C:\ServerFolder\";
private void Button1_Click(object sender, System.EventArgs e)
{
ArrayList fileList = new ArrayList();
string dirNameWithPath =
System.IO.Path.GetDirectoryName(File1.PostedFile.FileName);
// Get the files in the Directory
string[] files = Directory.GetFiles(dirNameWithPath);
foreach(string str in files)
{
// Add into the ArrayList
fileList.Add(System.IO.Path.GetFileName(str));
}
// Bind to the ListBox
ListBox1.DataSource = fileList;
ListBox1.DataBind();
// Run a loop and upload the files
foreach(string str in fileList)
{
File1.PostedFile.SaveAs(SERVER_FOLDER+System.IO.Path.GetFileName(str));
}
}
in my native system it is working fine but when i setup and try to
upload it is not returning the directorypath name
so please help me with that
thanks in advance
karnati
No. You either need to provide multiple input file fields, or have the
user
zip it up, send you the zip and unzip it.
This is an HTML limitation.
Karl
--
http://www.openmymind.net/