Skip to content

Commit

Permalink
remove a few more mentions of the 16MB limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 28, 2017
1 parent d224a0b commit 644e4df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/Mojo/Message/Request.pm
Expand Up @@ -410,8 +410,7 @@ there are multiple values sharing the same name, and you want to access more
than just the last one, you can use L</"every_param">. Note that this method
caches all data, so it should not be called before the entire request body has
been received. Parts of the request body need to be loaded into memory to parse
C<POST> parameters, so you have to make sure it is not excessively large,
there's a 16MB limit by default.
C<POST> parameters, so you have to make sure it is not excessively large.
=head2 params
Expand All @@ -422,8 +421,7 @@ C<application/x-www-form-urlencoded> or C<multipart/form-data> message body,
usually a L<Mojo::Parameters> object. Note that this method caches all data, so
it should not be called before the entire request body has been received. Parts
of the request body need to be loaded into memory to parse C<POST> parameters,
so you have to make sure it is not excessively large, there's a 16MB limit by
default.
so you have to make sure it is not excessively large.
# Get parameter names and values
my $hash = $req->params->to_hash;
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -583,8 +583,7 @@ string and C<application/x-www-form-urlencoded> or C<multipart/form-data>
message body, in that order. If there are multiple values sharing the same
name, and you want to access more than just the last one, you can use
L</"every_param">. Parts of the request body need to be loaded into memory to
parse C<POST> parameters, so you have to make sure it is not excessively large,
there's a 16MB limit by default.
parse C<POST> parameters, so you have to make sure it is not excessively large.
# Get first value
my $first = $c->every_param('foo')->[0];
Expand Down Expand Up @@ -931,7 +930,7 @@ validate file uploads as well as C<GET> and C<POST> parameters extracted from
the query string and C<application/x-www-form-urlencoded> or
C<multipart/form-data> message body. Parts of the request body need to be loaded
into memory to parse C<POST> parameters, so you have to make sure it is not
excessively large, there's a 16MB limit by default.
excessively large.
# Validate GET/POST parameter
my $validation = $c->validation;
Expand Down

0 comments on commit 644e4df

Please sign in to comment.