correct file upload extension recognition