karmakidd2 has asked for the wisdom of the Perl Monks concerning the following question:
Wathcing my /usr/tmp directory I notice that the temperorary CGI file being created stalls at a few hundred thousand k (size varies from aprox. 100000 to 550000) Eventually the browser quits with a 'The page cannot be displayed' message I originally was using CGI.pm version 2.46 but upgraded to the latest version (2.752) If anyone could help that'd be great!use strict; use CGI; my $q = new CGI; my $path = "/home/nobody/d2dReviewDatFiles/" . $project . "/"; my $newFile = $path . "allRecords.txt"; my $uploadedFile = $q->upload("file" ); open (NEWREF, ">$newFile"); binmode $uploadedFile; binmode NEWREF; while (<$uploadedFile>) { print NEWREF; } close (NEWREF);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: uploading large files with CGI.pm
by THRAK (Monk) on May 30, 2001 at 23:42 UTC | |
|
Re: uploading large files with CGI.pm
by petdance (Parson) on May 31, 2001 at 00:18 UTC | |
|
Re: uploading large files with CGI.pm
by novitiate (Scribe) on May 31, 2001 at 22:13 UTC |