framework
framework copied to clipboard
post body size limitation
How i can increase the post body size ?
There's a config https://docs.totaljs.com/latest/en.html#api~FrameworkConfiguration~default-request-length
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
@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 and @molda thanks guys