Mime type detection by magic numbers

precisely, I was trying to use the filename from plug, you need to use the path