Read the wrong img type when using pathinfo()
swkias opened this issue · comments
Wenbin Rong commented
When judging the type of img use this code :pathinfo($path, PATHINFO_EXTENSION).
Which means that if I have a pic name img.2,it process it as the type of 2 and throw an notSupportedException.I think use the finfo() in php to read the img type info is much more btter.