in reply to saving a file uploaded with cgi...this is driving me insane.

I had a similar problem with a similar script... you may want to try using

my $file_handle = $req->upload( $file ); and while ($bytesread=read($file_handle,$buffer,1024))

instead of

while ($bytesread=read($file,$buffer,1024))

I don't fully understand the way CGI.pm uploads files, per se...

Update: I changed some code. I realized what I originally said didn't make any sense. Sorry!


andre germain
"Wherever you go, there you are."