Allow bounded full-kit draft requests through the account service

This commit is contained in:
unimatrixgit 2026-11-22 11:30:55 +01:00
commit ebb54a1b23

View file

@ -1,6 +1,7 @@
export function panelBodyLimit(method,path){
if(method!=='POST')return 65536;
if(path==='/api/internal-mail/messages/send')return 32*1024*1024;
if(path==='/api/items/kitsets')return 128*1024;
// Emblem endpoints enforce their own raster validation and 2 MB image cap.
if(/^\/api\/(?:clan|company)-emblems\/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i.test(path))return 2*1024*1024;
if(path==='/api/ban-evidence')return 7*1024*1024;