This is a discussion on "problems with upload file." within the Classic ASP section. This forum, and the thread "problems with upload file. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
problems with upload file.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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? |
|
|
|
#2
|
|||
|
|||
|
Re: problems with upload file.
OK so I've found out that you can't submit form data and upload a file at the same time, but the code in the included upload.asp file has code to get the data from the fields in a form:
here is my code doing that:
|
|
#3
|
||||
|
||||
|
Re: problems with upload file.
Please post your ENTIRE code so we can help you.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
|||
|
|||
|
Re: problems with upload file.
its a lot, but here ya go:
upload.asp:
|
|
#5
|
||||
|
||||
|
Re: problems with upload file.
Are you using multipart/form-data as your form enctype?
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#6
|
|||
|
|||
|
Re: problems with upload file.
Quote:
|
![]() |
| Tags |
| problems, upload, file |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP+SQL+File Upload | joshlindem | PHP Forum | 5 | May 10th, 2008 16:48 |
| file upload | berry05 | Job Opportunities | 0 | Mar 19th, 2008 19:09 |
| File Upload | magiccupcake | PHP Forum | 1 | Jan 22nd, 2007 05:10 |
| File upload | djme | PHP Forum | 4 | Jan 11th, 2006 18:25 |
| asp file upload script having problems with MYSQL | paulmcn | Classic ASP | 2 | Oct 5th, 2005 18:45 |