hi guys
people are always trying to hack my form, they upload files like xxxx.php.jpeg etc.
reading old posts by navaldesign he said
You need to use a code like
$upload_Name1 = $_FILES[$file_key]['name'];
$upload_Name = $prefix.str_replace(" ", "_", $upload_Name1);
$upload_Size = ($_FILES[$file_key]['size']);
$upload_Temp = ($_FILES[$file_key]['tmp_name']);
$upload_Type = ($_FILES[$file_key]['type']);
if($upload_Type != "image/gif" AND $upload_Type != "image/pjpeg" AND $upload_Type != "image/jpeg" AND $upload_Type != "image/png" AND $upload_Type != "image/tiff" AND $upload_Type != "image/bmp"){
$error1 = "$file_key file type is '$upload_Type' which is not allowed! \n";
// Add here a "include" command to include an error page
}
my question is, where and how to insert this code in BV form processor
and will this still work if the uploaded file is named xxxxxx.php.jpeg.
If there is a newer way to avoid these files please enlighten me as these posts where from 2005
thanks
johnny