I copied some Perl code about a year ago to do a file upload to an apache server file system. In 5.6, the system worked fine. Now in 5.8, I'm getting a failed filehandle read with the CGI->upload function. Here is the code:

        use CGI;
        use Fcntl qw(:DEFAULT :flock);
        
        $CGI::POST_MAX = 1024 * 1024 * 1024;#1 gig
        
        my $maxTries = 10;
        
        my $query = new CGI;
        
        #grab file handle from form
        my $fileHandle = $query->upload($fieldName);
        my $fileName = $fileHandle;

Again, this worked perfect before 5.8. Any clues on the proper use?

Thanks,

mark



Reply via email to