Replies Back to Article

Upload to Different Folders

Upload to Different Folders
March 15, 2002 by Anshuman Gautam

 Instead of

>>"Upload/" & UploadFormRequest("Department")<<

I've this

Set UploadRequest = CreateObject("Scripting.Dictionary")  
BuildUploadRequest RequestBin, """filename""", "file", "1000", "over"

Could you please help

Upload to diffrent folders
March 30, 2002 by charles sebert
Where do you actually insert this expression :

"Upload/" & UploadFormRequest("Department").

In the page where the form is or in the IncPureUpload.asp page and where in the code ?

 

Thank you !

combining these languages is confusing !
April 23, 2002 by Dennis van Galen

how about when there's a dynamic rewritten dropdownlist on the page, for instance files ending up in:
Uploads/<Section>/<Reference>/

resulting in something like: Uploads/Manuals/Websign/WSv1.doc
and / or: Uploads/Designs/OFT/OFTpov204.doc

would i use something like:

"Upload/" & UploadFormRequest("Section") & "/" & UploadFormRequest("Reference")

RE: Upload to different folders
April 23, 2002 by Dennis van Galen

You place this in the "Upload folder" in the main window of the server behavior.
also don't forget to change filename to "prefix with full path".

Dennis

RE: combining these languages is confusing !
June 9, 2002 by hubert hubert
fOR ME TOO? I4M SORRY BUT IT4S NOT WORKING I have test your code, i have all permissions on my server directory, it writes only in the directory i specify and it does nothing when i try to do it dynamically with a textbox or a listbox. Could you please explain the part of the code to change in pureasp upload v2.08. Thanks a lot
Passing the folder name?
January 28, 2003 by Murray Summers

I have a page that is creating any additional needed folders and then redirecting to the upload page.  Can I pass the name of the folder like -

Response.Redirect("upload.asp?folder=foo")

and then pick that up with a Request.Query in a variable which is then used here -

  BuildUploadRequest RequestBin, ""folder"", "file", "", "over"

??