passing multiple file names

  • Thread starter Thread starter Robertmooney
  • Start date Start date
R

Robertmooney

I have an ASP.NET Web application where I want users to
specify browse/select multiple files in multiple folders
on their local workstations. Upon submitting the form, I
want to have server-side code to manipulate the files.
This is something like writing an email with attachments
via a web form.

What is the best way to accomplish this? Are there some
examples of how to browse/select files and pass them to
the server-side code?

bob
 
Robertmooney said:
I have an ASP.NET Web application where I want users to
specify browse/select multiple files in multiple folders
on their local workstations. Upon submitting the form, I
want to have server-side code to manipulate the files.
This is something like writing an email with attachments
via a web form.

What is the best way to accomplish this? Are there some
examples of how to browse/select files and pass them to
the server-side code?

bob

Pass an array, like the OpenFileDialog uses. Just vamp through the array
and process each file and you're done.

HTH,
Sueffel
 
Hi Robert,

If you use a webbrowser you will never get control over the files on the
client side when you do not insert a piece of non webbrowser code in it,
which the user would have to load first.

When you want to do this kind of things and it is in your own
administratable environment, make a window forms application from it, that
will give you a lot less trouble.

Did you see how many money Microsoft spent to let servers not reach the
clients.

Just my thought,

Cor
 
Back
Top