Simultaneous file upload and post variables?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GregArtemides
Forum Newbie
Posts: 5
Joined: Fri Jun 13, 2003 7:03 pm

Simultaneous file upload and post variables?

Post 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
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post 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.
Post Reply