Hi there
I have build a small Content Management system, which allows users to upload files via an ASP page to an Access Database.
The Upload works fine, and the files are saved to the DB, which other users can then download.
The problem comes in where I would like the user to beable to add a "title" and "description" to the actual file that he uploads. I have tried various methods, including:
1. The page where the user selects the file to upload, has three fields Title, Description and File (Browse for file)
When this page is submitted I get the following error:
Request object error 'ASP 0207 : 80004005'
Cannot use Request.Form
/ToDatabase.asp, line 16
Cannot use Request.Form collection after calling BinaryRead.
-----------------------------------------------------------
2. If I remove the Title and Description fields from the page, and once the user has uploaded their file, the page then directs them to a second form, where they fill in the Title and Description. However, when i use this solution, the uploaded file is in a separate recordset, to the Title and Description.
What I need is for all the file data to be saved in the same recordset in the DB, so when a users searches for a file, the results come up in a table with a link to the physical file, then a Title and Description.
Can anyone HELP please?
Thanks
I have build a small Content Management system, which allows users to upload files via an ASP page to an Access Database.
The Upload works fine, and the files are saved to the DB, which other users can then download.
The problem comes in where I would like the user to beable to add a "title" and "description" to the actual file that he uploads. I have tried various methods, including:
1. The page where the user selects the file to upload, has three fields Title, Description and File (Browse for file)
When this page is submitted I get the following error:
Request object error 'ASP 0207 : 80004005'
Cannot use Request.Form
/ToDatabase.asp, line 16
Cannot use Request.Form collection after calling BinaryRead.
-----------------------------------------------------------
2. If I remove the Title and Description fields from the page, and once the user has uploaded their file, the page then directs them to a second form, where they fill in the Title and Description. However, when i use this solution, the uploaded file is in a separate recordset, to the Title and Description.
What I need is for all the file data to be saved in the same recordset in the DB, so when a users searches for a file, the results come up in a table with a link to the physical file, then a Title and Description.
Can anyone HELP please?
Thanks