working to check uploaded file type