Page 1 of 1

Simultaneous file upload and post variables?

Posted: Tue Jun 24, 2003 6:59 am
by GregArtemides
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? :D

Posted: Tue Jun 24, 2003 7:09 am
by releasedj
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.