Cleaned code. A bit.

This commit is contained in:
qorg11 2020-04-26 19:31:39 +02:00
parent ee791ee09b
commit 810ef93471
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 5 additions and 1 deletions

View File

@ -24,9 +24,13 @@ my $filename = $q->param('file');
my $upload_dir = "files/";
print $q->header();
$size = $ENV{CONTENT_LENGTH};
# Configuration
$MAX_SIZE = 1024*1024*10; # Change for your size
$MAX_SIZE_MB = $MAX_SIZE / 1024 / 1024; # Don't change this
if($filename eq "") {
if($filename eq "")
{
print("What are you looking for?");
exit;
}