in reply to CGI upload and IIS 5

I don't think you need to do this:

my $filename = $request->param('file'); my $filehandle = $request->upload( $filename );

According to the docs for CGI, 'the filename returned is also a filehandle', which sounds like serious voodoo to me. I can't test it on IIS here, but this normally works:

my $filename = $request->param('file'); binmode ($filename); # etc

Hope this helps.

Replies are listed 'Best First'.
Re: Re: CGI upload and IIS 5
by RatArsed (Monk) on Jun 05, 2001 at 18:28 UTC

    When I tried this all it wrote to the file was "param('file')". DOH!