Looks like you inserted the file name into the database instead of the file itself. When you receive the file, use this to get the data (untested; assuming your old way was otherwise correct):
$form_data2 = $_FILES['form_data2']['tmp_name'];
$data2 = addslashes(fread(fopen($form_data2, "r"), filesize($form_data2)));
You might want to use mysql_escape_string() instead of addslashes(). Mysql_escape_string is specifically for escaping data for a MySQL query; addslashes just happens to do the same thing most (all?) of the time.
Make sure the field in the database is of a type that supports binary data. If it isn't you might run in to trouble.