You should change your Sql like-
$sql = "INSERT INTO product_logs (fileName, mimeType, fileData)
VALUES ('".$uploadname."','".$uploadtype."','".$uploaddata."')";
Also as we have seen your table name is product_logs
can you share the structure of the product_logs table? so that we have a better clarification of your question.
Thanks