PDA

View Full Version : Uploading a file using ASP


Beno
10-28-2002, 03:43 AM
Hi There,

Some webpages have a "Browse" button which enables the client to select a file of their computer and then submit it.

The "Browse" button is set up by saying something like:


FORM type=POST action="...."
INPUT type=FILE name="Browse"
...
...
...
/FORM

How do you actually transfer the file contents across the web from client to server. What mechanism/object should I be using in ASP to do this??

Regards

Beno


P.S -> A good example of what I am trying to do is when you are posting a thread to this site, and their is a Attach File box underneath where you type your message. The button on the right hand side is where you browse to the client HDD and then upload from there.

Paul Komski
10-28-2002, 09:21 PM
Some ideas here >> http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20307155.html

You could also use an activeX control - but then that wouldn't be asp.

Beno
10-28-2002, 09:59 PM
Thanks Paul,

Great site

Beno