View Single Post
  #1 (permalink)  
Old Dec 11th, 2005, 17:52
djanim8 djanim8 is offline
Junior Member
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
problems with upload file.

I found this script to upload a file with ASP:
http://www.asp101.com/articles/jacob/scriptupload.asp

I'm uploading a file and setting values from a form to a SQL database.

It tells me:
Request object error 'ASP 0206 : 80004005'
Cannot call BinaryRead
/secur-it/upload.asp, line 64
Cannot call BinaryRead after using Request.Form collection.


So I went to the upload.asp file thats included and commented out this line:
Line 64: biData = Request.BinaryRead(Request.TotalBytes)


That fixed the error, but then it won't get the file name, or save it to the folder on the server.

how do I do a form request AND upload a file?
Reply With Quote