perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Strange problem with upload file
Date Fri, 13 May 2005 04:00:47 GMT
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


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message