totaljs / framework

Node.js framework
http://www.totaljs.com
Other
4.36k stars 450 forks source link

post body size limitation #561

Closed DarkKnight1992 closed 7 years ago

DarkKnight1992 commented 7 years ago

How i can increase the post body size ?

molda commented 7 years ago

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

petersirka commented 7 years ago

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 commented 7 years ago

@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.

DarkKnight1992 commented 7 years ago

@petersirka and @molda thanks guys