Yes, (or all uppercase - as long as everything gets “case standardized”)
It doesn’t help that the code has lowercase (var name typo?)
$expensions= array("jpeg","jpg","png");
but the message has uppercase
extension not allowed, please choose a JPEG or PNG file.