I want to test if the user selected a file or not , so I tested if $_FILES['input_name']['name'] is not null.
I used the PHP function is_null($_FILES['input_name']['name']) but the code goes to the statements where it’s supposed a file was selected !
So I replaced my test with $_FILES['input_name']['name'] != "" .
So why isn’t is_null accurate with $_FILES[‘name’] ?
try to use
empty()function instead of== ""