I can not check the what is the file type from file content. I am explaining my code below.
const FileType = require(\'file-type\'); let content = \'eyJ0ZXN0L