Simultaneous file upload and post variables?
Moderator: General Moderators
-
GregArtemides
- Forum Newbie
- Posts: 5
- Joined: Fri Jun 13, 2003 7:03 pm
Simultaneous file upload and post variables?
I'm looking for a way to do http file upload and post file information to the database at the same time. Basically I have a form that has a browse button to allow the user to choose a file, and then some textfields where the user will be entering information about the file, for example a short description. Then I want a submit button which when pressed will simultaneously do the file upload and submit the info from the textfields into the database. Any ideas how I can do this? 
Take a look at http://www.php.net/features.file-upload
If you wish to upload a file to the database, you must read the temporary file created on upload and insert it into a blob field.
If you wish to upload a file to the database, you must read the temporary file created on upload and insert it into a blob field.