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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload problem

Status
Not open for further replies.

pollo4

Programmer
Oct 23, 2002
6
AR
Hi! I'm trying to make a file upload:

Code:
Dim InfoRead
Dim objStream
Dim strFileName
strFileName = Server.MapPath("temp.dat")
response.write strFilename

InfoRead = Request.BinaryRead(Request.TotalBytes)
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Mode = 2
objStream.Open
objStream.Type = 1
objStream.Write InfoRead

objStream.SaveToFile strFileName, 2
objStream.Close
Set objStream = Nothing

But it doesnt work. I get an error on SaveToFile line:
"ADODB.Stream error '800a0c93'
Operation not allowed in this context."

The guest user (IUSR_server) has all permissions granted.
Please help!
Thanks in advance

Pollo!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top