Cleaned code. A bit.
This commit is contained in:
parent
ee791ee09b
commit
810ef93471
1 changed files with 5 additions and 1 deletions
|
@ -24,9 +24,13 @@ my $filename = $q->param('file');
|
||||||
my $upload_dir = "files/";
|
my $upload_dir = "files/";
|
||||||
print $q->header();
|
print $q->header();
|
||||||
$size = $ENV{CONTENT_LENGTH};
|
$size = $ENV{CONTENT_LENGTH};
|
||||||
|
# Configuration
|
||||||
|
|
||||||
$MAX_SIZE = 1024*1024*10; # Change for your size
|
$MAX_SIZE = 1024*1024*10; # Change for your size
|
||||||
$MAX_SIZE_MB = $MAX_SIZE / 1024 / 1024; # Don't change this
|
$MAX_SIZE_MB = $MAX_SIZE / 1024 / 1024; # Don't change this
|
||||||
if($filename eq "") {
|
|
||||||
|
if($filename eq "")
|
||||||
|
{
|
||||||
print("What are you looking for?");
|
print("What are you looking for?");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue