export function panelBodyLimit(method,path){ if(method!=='POST')return 65536; if(path==='/api/internal-mail/messages/send')return 32*1024*1024; if(path==='/api/ban-evidence')return 7*1024*1024; // A validated 2 MB image plus bounded multipart headers. if(path==='/api/account/avatar')return 2*1024*1024+65536; return 65536; }