Eh... I believe Volitics assumed register_globals is On, which it should never ever ever EVER be. In addition, $UserFile should be an array. Try something like this:
$FileData = addslashes(file_get_contents($_FILES['UserFile']['tmp_name']));
and then use $FileData in your INSERT SQL statement. (Don't forget to adjust variable names, such as the $_FILES index, as necessary, according to your HTML setup and whatnot).