PDA

View Full Version : Upload script help


Phip
09-28-2002, 08:10 PM
When i use this i get a 500 error. it doesn't give me any information. is there something wrong with this?

<% @Language="VBScript" %>
<html>
<body>
<%
Set theForm = Server.CreateObject("ABCUpload4.XForm")
theForm.AbsolutePath = True
Set theField = theForm.Files("file")
If theField.FileExists Then
theField.Save "C:\" & theField.SafeFileName
Response.Write "File uploaded..."
Else
Response.Write "No file uploaded..."
End If
%>
</body>
</html>

BigDaddy
09-28-2002, 09:12 PM
Do you have the browser options set to friendly error warnings?

If you're using IE, have you gone into Tools --> Internet Options/Advanced and unclick "Show friendly HTTP error messages"?

That should give more information on the specific error or problem with it.

Phip
09-28-2002, 09:46 PM
Thank you very very much for that. I never knew about it.

This is what i get now:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Files'

/basicupload/upload.asp, line 7


but what the heck? i got this script directly from the site and ABC Upload is on the servers. I asked them and they said it was a code problem, not a server.

http://websupergoo.com/helpupload/frames.htm - basic upload

whammy
09-29-2002, 06:51 PM
Since this is a third-party component, and your script is identical to the example on their website, I'd contact the people who made it! Or perhaps your webhost didn't register the .dll files they need to (?!?):

http://websupergoo.com/helpupload/2-technotes/troubleshooting.htm

:)