Hi I want to upload multiple files in wpf using web client class....
this is my xaml design and code
private void btnOpenFiles_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Multiselect = true;
openFileDialog.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*";
openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
if (openFileDialog.ShowDialog() == true)
{
foreach (string filename in openFileDialog.FileNames)
lbFiles.Items.Add(System.IO.Path.GetFileName(filename));
}
}
this is xaml design
am able to select multiple files...again how to send all the selected files to the server .
Thanks in Advance
mounika madhavaramPosted Sep 18, 2018, 4:40 AM
>(response.Result);
Amit GuptaPosted Sep 17, 2018, 10:01 AM