diff options
author | Yorhel <git@yorhel.nl> | 2011-03-09 11:30:54 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-03-09 11:30:54 +0100 |
commit | 1ba1b6758cd9139bc1ade9d006490816bf51c685 (patch) | |
tree | 0bfebbc5e541b435fcb82d16391a53fbe967d071 /lib | |
parent | 74a0788420200b5acb6b81916d931bab75bae4d5 (diff) |
Increased allowed size of VN cover image upload to 5MB
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index 82f7e169..ce564fc0 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -128,7 +128,7 @@ sub _uploadimage { # perform some elementary checks my $imgdata = $self->reqUploadRaw('img'); $frm->{_err} = [ 'noimage' ] if $imgdata !~ /^(\xff\xd8|\x89\x50)/; # JPG or PNG headers - $frm->{_err} = [ 'toolarge' ] if length($imgdata) > 512*1024; + $frm->{_err} = [ 'toolarge' ] if length($imgdata) > 5*1024*1024; return undef if $frm->{_err}; # get image ID and save it, to be processed by Multi |