jiggs has asked for the wisdom of the Perl Monks concerning the following question:
Could there be a server setting to adjust or is there a problem with my code?
Server is NT4 SP6a$CGI::POST_MAX=1024*100000; my $q = new CGI; my $myFile = $q->upload('file'); binmode($myFile); if (!$myFile && cgi_error()) { print $q->header(-status=>cgi_error()); print $q->p("Error"); exit 0; } my $dir = "c:\\inetpub\\scripts\\perl\\uploads"; open (MYFILE,">$dir\\test_upload.txt") || die $!; binmode(MYFILE); while (<$myFile>) {print MYFILE $_; } close (MYFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File upload limited to 1 M B
by Hero Zzyzzx (Curate) on Oct 18, 2002 at 13:43 UTC | |
by Anonymous Monk on Oct 18, 2002 at 13:53 UTC | |
|
Re: File upload limited to 1 M B
by strider corinth (Friar) on Oct 18, 2002 at 13:49 UTC | |
|
Re: File upload limited to 1 M B
by Anonymous Monk on Oct 18, 2002 at 15:02 UTC | |
by jiggs (Acolyte) on Oct 18, 2002 at 15:12 UTC | |
|
Re: File upload limited to 1 M B
by jiggs (Acolyte) on Oct 18, 2002 at 15:08 UTC | |
|
Re: File upload limited to 1 M B
by Anonymous Monk on Oct 18, 2002 at 17:31 UTC |