Yeah, I tried it that way before I posted my initial question and found that the browser's mime type was not reliable enough. And in the case of the application I'm writing, the client may not know the type for the file, but the server will.
Furthermore, I can think of cases where a file might get into the database without coming from a browser.
I guess I will just have to parse that mime.types file into an array or a mysql table.
To be more precise, what I want is a function mime_lookup() where I can do:
if ($f_type == "application/octet-stream") {
ereg(".(.+)$", $userfile_name, $crap);
$f_type=mime_lookup($crap[1]);
}