Provide a file type detection hook