The file type is detected by checking the magic number of the buffer. This package is for detecting binary-based file formats, not text-based formats like .txt, .csv, .svg, etc. We accept ...