I want the users to upload files through my webapp I am developing in PHP usinig MySql in the backend. I want to store the files in the database. I am facing problems in doi
it's in the tmp directory, till you move it
$userfile = $_FILES['binFil']['tmp_name']; move_uploaded_file($userfile , "somedir");
Afterwords you should detect what type it is with something like
$userfileExt = array_pop(explode(':', $userfile));