Forums

This topic is locked

Pure ASP Upload 2.17 - Uploading to subdirectories

Posted 03 Dec 2003 00:15:09
1
has voted
03 Dec 2003 00:15:09 Gregory Wolf posted:
I have searched the forums and haven't found anything that quite fits this issue. I am trying to upload files to a directory that is 2 folders below the upload folder. I am trying to get the folder names from the form that I just submitted. I have it working for 1 folder deep. Below is the code I am trying to use. Any help would be greatly appreciated.

pau_thePath = """Uploads/"" & UploadFormRequest(""Department"" , UploadFormRequest(""CustName"""

Replies

Replied 03 Dec 2003 00:50:44
03 Dec 2003 00:50:44 Gregory Wolf replied:
I am still poking at this. I tried this code:

pau_thePath = """Uploads/"" & ""UploadFormRequest('Department')/"" & ""UploadFormRequest('CustName')"""

and it created the subfolders, but named them wrong. Looks like this:

Uploads/UploadFormRequest('Department')/UploadFormRequest('Department')/Filename.doc

I change the single quotes to double quotes and it errors.
Replied 03 Dec 2003 11:50:28
03 Dec 2003 11:50:28 Patrick Woldberg replied:
The line should be:

pau_thePath = "Uploads/" & UploadFormRequest("Department" & "/" & UploadFormRequest("CustName"

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 03 Dec 2003 17:14:07
03 Dec 2003 17:14:07 Gregory Wolf replied:
Thank you very much. I appreciate the help. That worked great.

I hope everyone has a Happy Holiday.

Reply to this topic