Allow bounded full-kit draft requests through the account service
This commit is contained in:
parent
5f25e5c2a5
commit
ebb54a1b23
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff