Hi sewox,
For this requirement, you should save the upload file into your server first, then write your own code to save this file into the database. To save the upload file, please refer to step 3 at http://phpfileuploader.com/Deployment.html
Regards,
Ken