![]() |
|< 1 2 >| | ![]() |
17 Einträge, 2 Seiten |
QuoteHast Du versucht, an den Anfang des Scriptes zu schreiben:
Code
#!/usr/bin/perl
use strict;
use CGI::Carp qw/fatalsToBrowser/;
die "Datei zu lang\n" if $ENV{CONTENT_LENGTH} > 5000000;
Quote
du musst die abfrage vor dem laden (bzw. initialisieren) von CGI.pm machen.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl
use strict;
use warnings;
BEGIN {
if($ENV{'REQUEST_METHOD'} eq 'POST') {
print "Content-Type: text/html\n\n";
print "Content-Length: ".$ENV{'CONTENT_LENGTH'}."\n";
exit(0);
}
}
print "Content-Type: text/html\n\n";
print qq~
<html>
<head>
<title>Stop Upload Test</title>
</head>
<body>
<form method="post" action="stopupload.pl" enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" />
</form>
</body>
</html>
~;
![]() |
|< 1 2 >| | ![]() |
17 Einträge, 2 Seiten |