What would be the regex to validate this mime types only
- image / bmp
- image / gif
- image / x-icon
- image / pjpeg
- image / jpeg
- image / png
I want to make a image upload system only , in case of this mime types:
$verifyimg = getimagesize($_FILES['image']['tmp_name']);
if(!preg_match($pattern, $verifyimg['mime']){
die("Só imagens!");
}