Link to home
Start Free TrialLog in
Avatar of madabtasp
madabtasp

asked on

help on ASP upload

Hi to all,

I am using ASP upload component to upload my files to a server. Here r 2 problems I encountered

1)whever i try to called a few checkboxes with the same name e.g. upload.form("checkbox"), I encountered this problem "out of memory". but when i rename each checkbox differently, everything works fine. could someone explain to me y?

2)how can i specify my upload path so that it points to a directory hosted on a server?

Thx a lot
Avatar of markhoy
markhoy
Flag of United Kingdom of Great Britain and Northern Ireland image

maybe it has problems with arrays? can you only set one checkbox or many? each should have a different name or you will pass a value like: checkbox=1,2,5,6 etc

the path will be set in your form (as a save to disk path?). do you mean by "upload path" the path to save to on disk? ie
finalFileName = Request.ServerVariables("APPL_PHYSICAL_PATH") & str

to see your server variables use:

for each fld in request.servervariables
response.write fld & " = " & request.servervariables(fld)
next


or,

arPathInfo = split(Request.ServerVariables("PATH_INFO"), "/")
arFileNameWithQueryString = split(arPathInfo(Ubound(arPathInfo,1)-1), "?")
CurrentDirName = arFileNameWithQueryString(0)

Avatar of sybe
sybe

1.
Looks like your upload-component can not handle multiple formfields. Try another component....

http://www.taka.nl/programming/asp/pseudorequest/default.asp offers a pure-script solution for file-upload handling multiple formfields.

2.
The documentation of the component should make that clear...
Avatar of madabtasp

ASKER

hmm....what i mean is that my checkbox does not pass the value like 1,2,3,4...but instead an error msg saying "out of memory" pop out.

for my upload path, can I specify it not from the root directory, e.g. not from C:/.... ?
hmm....what i mean is that my checkbox does not pass the value like 1,2,3,4...but instead an error msg saying "out of memory" pop out.

for my upload path, can I specify it not from the root directory, e.g. not from C:/.... ?
hmm....what i mean is that my checkbox does not pass the value like 1,2,3,4...but instead an error msg saying "out of memory" pop out.

for my upload path, can I specify it not from the root directory, e.g. not from C:/.... ?
hmm....what i mean is that my checkbox does not pass the value like 1,2,3,4...but instead an error msg saying "out of memory" pop out.

for my upload path, can I specify it not from the root directory, e.g. not from C:/.... ?
hmm....what i mean is that my checkbox does not pass the value like 1,2,3,4...but instead an error msg saying "out of memory" pop out.

for my upload path, can I specify it not from the root directory, e.g. not from C:/.... ?
ASKER CERTIFIED SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
madabtasp:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Answer by sybe

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
GaryC123
EE Cleanup Volunteer