Check for file type