Increase web upload limit to 100Mb
This commit is contained in:
parent
a2021eb363
commit
bd1cb72097
|
@ -2,6 +2,8 @@
|
|||
secrets:
|
||||
- HERE
|
||||
|
||||
max_upload_size: 104857600
|
||||
|
||||
database:
|
||||
type: 'postgres'
|
||||
connection: 'postgresql://'
|
||||
|
|
|
@ -48,6 +48,7 @@ sub startup($self) {
|
|||
|
||||
# Configure the application
|
||||
$self->secrets($config->{secrets});
|
||||
$self->max_request_size($config->{max_upload_size});
|
||||
|
||||
# Router
|
||||
my $r = $self->routes;
|
||||
|
|
|
@ -188,8 +188,8 @@ sub upload_post($c) {
|
|||
|
||||
my $is_browser = $c->param('is_browser');
|
||||
|
||||
# Ten megabytes
|
||||
my $max_size = 10 * 1024 * 1024;
|
||||
# Hundred megabytes
|
||||
my $max_size = 100 * 1024 * 1024;
|
||||
|
||||
unless ($file) {
|
||||
$c->flash(msg => "No file specified.");
|
||||
|
|
Loading…
Reference in New Issue