Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File upload problem

Status
Not open for further replies.

JimFL

Programmer
Jun 17, 2005
131
GB
I am struggling to sort out a problem with using an upload object (Persits.Upload). When I submit a form (with encrypt type set/enctype="multipart/form-data") the code falls over at line Upload.SaveVirtual "/uploads"

CODE AS FOLLOWS
<%

Set Upload = Server.CreateObject("Persits.Upload.1")


if(Request.QueryString("frmSubmited")="true")then

'dim fname, imgErr, errDesc
fname = ""
imgErr = false

fname = ""
imgErr = false
Upload.SaveVirtual "/uploads" 'line 201
/problem above
.....
end if
%>


actual error =
Persits.Upload.1 error '800a0001'

Unspecified error

/admin/adminpages/editContact.asp, line 201

Does anybody know how to deal with this? It seems to happen if I upload an image or not. I would also like to know a way of testing if there is a file uploaded or not.

Please help.

JimFl


 
have you got a virtual directory called uploads on your web site root?
is it writable?

QatQat

Life is what happens when you are making other plans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top