This should all be in the upload control's documentation. Do you have a copy of the docs for this control? If not, I suggest you do get a copy and read a bit. It may speed up this project.
Anyway, you can use the FileSystemObject (FS) to see if a folder exists using FolderExists. If necessary, you can create the folder before you allow the upload. Search Google for FileSystemObject and FolderExists for some useful results.
Let's say you have a domain like
www.yourdomain.com. With your ISP, this may map to C:\inetpub\wwwroot\Customers\hastikeyvan
When you create a folder called Uploads (using FTP for example), the folder is accessible as
http://www.yourdomain.com/Uploads
When you use Server.MapPath("/Uploads") to get the physical location of the Uploads folder in the root of your site you get C:\inetpub\wwwroot\Customers\hastikeyvan\Uploads
So, in that folder you can store the files, which can then be downloaded from
http://www.yourdomain.com/Uploads
Does this help??
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Dozer by
Ed Rush & Optical (Track 9 from the album:
Wormhole #1)
What's This?