Add limit to web interface
This commit is contained in:
parent
bd1cb72097
commit
6c5d25be27
|
@ -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'}
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue