Better check on ajax request than $_FILES