Condition could not perform action

try this

if ($_FILES['img']['size'] != 0 && $_FILES['img']['error'] == 0)
{
// imag is not empty (and not an error)
}

Leave a Comment