Add limit to web interface

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

View File

@ -10,6 +10,7 @@ WriteMakefile(
'Mojolicious::Plugin::OpenAPI' => '5.07',
'Mojo::Pg' => '4.27',
'Crypt::Random' => '1.25',
'Number::Bytes::Human' => '0.11',
},
test => {TESTS => 't/*.t'}
);

View File

@ -1,7 +1,8 @@
% layout "default";
% title "Uploads";
% use Number::Bytes::Human qw/format_bytes/;
<h1>Upload</h1>
<p>Here you can upload files.</p>
<p>Here you can upload files. Please note the limit is <b><%= format_bytes(config->{max_upload_size}) %></b>.</p>
% if (my $msg = flash 'msg') {
<p>