if ($userfile_size > 524288000) { echo ("This file to big for saving at our server. Sorry!"); } if ($userfile_type == "image/gif" or $userfile_type == "image/jpeg" or $userfile_type == "image/png") { // In this case file is image and we are go to the dir where are pictures situated

if ($userfile_size > 524288000) { echo ("This file to big for saving at our server. Sorry!"); }if ($userfile_type == "image/gif" or $userfile_type == "image/jpeg" or $userfile_type == "image/png"){// In this case file is image and we are go to the dir where are pictures situated