framework icon indicating copy to clipboard operation
framework copied to clipboard

post body size limitation

Open DarkKnight1992 opened this issue 9 years ago • 4 comments

How i can increase the post body size ?

DarkKnight1992 avatar Oct 07 '17 13:10 DarkKnight1992

There's a config https://docs.totaljs.com/latest/en.html#api~FrameworkConfiguration~default-request-length

molda avatar Oct 07 '17 14:10 molda

Or directly in the route: https://docs.totaljs.com/latest/en.html#api~Framework~F.route

F.route('/relative/', action, 512); // 512 kB
F.route('/relative/', action, ['flag1', 'flag2'], 1024); // 1024 kB

petersirka avatar Oct 07 '17 14:10 petersirka

@DarkKnight1992 I found bug in the latest version with a body length --> received bytes are not converted to kB for classic requests with except multipart/form-data. Next week will be a new version with this fix.

petersirka avatar Oct 07 '17 14:10 petersirka

@petersirka and @molda thanks guys

DarkKnight1992 avatar Oct 07 '17 21:10 DarkKnight1992