Будет ли это безопасно?
$imagePath = SITE_PATH.'/uploads/design/'.$user.'/';
$allowedExts = array("jpeg", "jpg", "JPEG", "JPG", "png", "PNG", "psd", "PSD", "ai", "AI");
$temp = explode(".", $_FILES["file_print"]["name"]);
$extension = end($temp);
$file_name = date('YmdHis').rand(100,1000).'_design.'.$extension;
if(in_array($extension, $allowedExts)){
$file_temp_name = $_FILES["file_print"]["tmp_name"];
move_uploaded_file($file_temp_name, $imagePath . $file_name);
}
Сможет ли пройти php скрипт?