Check uploaded file type