1
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 upload an image system only, in the case of this mime types:
$verifyimg = getimagesize($_FILES['image']['tmp_name']);
if(!preg_match($pattern, $verifyimg['mime']){
die("Só imagens!");
}