pub fn sniff_attachment(bytes: &[u8]) -> Option<&'static str>Expand description
The content type of an allowed attachment, decided by its first bytes (never by the name or the type the client claims): PNG, JPEG, GIF, WebP or PDF. SVG and everything else are refused.