Update AttachImage.php

Check uploaded file format by mime type (fileinfo extension). Попытка номер 2
Merge pull request #160 from SerafimArts/patch-2

Update AttachImage.php