[thelist] ASP: Allow clients to upload images to server ???

Scott Schrantz scotts at rci-nv.com
Fri Aug 29 11:21:04 CDT 2003

> -----Original Message-----
> From: Casey Crookston [mailto:casey at thecrookstons.com]
> Sent: Friday, August 29, 2003 8:47 AM
> There is one hang-up:  when it comes to uploading
> pictures, they are stuck with having me do it for them.
> The site is developed in ASP and is hosted in IIS (2k v5.0 I 
> believe).  I'd like to restrict access so that images can
> only be placed in the correct folder, and they would need to
> be able to do it FROM A BROWSER!!!   (I don't
> want to have to teach them to use an FTP client.)

You need to have a file upload component installed on the server. Many Windows hosts offer one as part of their package (brinkster.com, for example). If you're running your own server, you'll have to install it yourself. If your host doesn't offer it, I think you're out of luck.

Once the component is installed, you put a form in your page with enctype="multipart/form-data", and then use <input type="file" /> to get the filename from the user. Then you write ASP code that uses the component to process the form input and save the file where you want it to go. Most of that is explained in the documentation for the component.


Scott Schrantz
work: www.rci-nv.com
play: www.computer-vet.com/weblog/

More information about the thelist mailing list