Increase web upload limit to 100Mb

This commit is contained in:
Citlali del Rey 2023-02-06 21:37:46 -08:00
parent a2021eb363
commit bd1cb72097
Signed by: nullobsi
GPG Key ID: 933A1F44222C2634
3 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,8 @@
secrets:
- HERE
max_upload_size: 104857600
database:
type: 'postgres'
connection: 'postgresql://'

View File

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

View File

@ -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.");