web/website/control-panel/request-limits.mjs
Dev 6deb4a2e7d DuneRealms V2 clean baseline
Owner-authorised history reset; current source tree preserved exactly.
2026-11-13 00:05:14 +01:00

8 lines
332 B
JavaScript

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;
}