Thanks, Gerald for your quick answer. I've resolved that problem. It's related with old version of Embperl and latest version of CGI. You've fixed that bug in 2.0b11: Fixed problem with CGI.pm 3.01+, which deletes uploaded files, when CGI object is destroyed.

So, after upgrating Embperl till latest version everithing working fine!

Thanks for very good job!

Gerald Richter wrote:

Hi,



Recently, I've found in Apache log file that message:
   Warning in Perl code: readline() on closed filehandle
fh00001C%3A\fts\receive\PBW036H3.023

It seems that file was uploaded


I guess there was some thumb client (maybe a robot) which pass invalid data to your form.



but before reading procedure was started file handler was closed by some reason. The strange thing is the loop was run once and program was not die in checking of length of row!




No the loop was never run because the expression inside your while is not defined and gives the warning above.



So, does somebody know where Embperl stores uploaded files?


It's managed by CGI.pm, which creates a temopary file and imediately deletes it, so you will never see it.



Why file handler was closed and how check is file handler is open or not?




There should be some Perl function to test this, maybe eof() works, but I am not sure

Gerald





--
Best regards, Michael Stepanov
Perl/Linux Developer
Francoudi & Stephanou Ltd
Tel: +357 25-867154
Email: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to