At Thu, 12 May 2005 12:51:43 +0300, Michael Stepanov wrote:
> It seems that file was uploaded but before reading procedure was
> started file handler was closed by
> some reason.
[...]
> I use: - Linux RedHat 9, Embperl/2.0b9, Apache/2.0.40,
> mod_perl/1.99_07-dev, Perl v5.8.0
Hrm. A problem matc
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 l
Hi,
>
> Recently, I've found in Apache log file that message:
> Warning in Perl code: readline() on closed filehandle
> fh1C%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
Dear all,
I have a strange problem with upload file. It was happened only once but
I'm afraid that
it can be again.
I have a some form like that:
Select File:
In upload.epl I just get filehandler and use it as method's argument:
my $up_obj = new UploadFile();
$up_obj->uplo
At 12:25 AM +0200 10/9/03, Rado Petrik wrote:
Hi, I have this script.
[-
if (defined $fdat{ImageName}) {
open FILE, "> test ;
print FILE $buffer
while read($fdat{ImageName}, $buffer, 32768);
close FILE;
}
-]
File test exist but have size 0 k.
I have Embperl v 1
Firstly Rado, there is a typo in your "open" line: a missing closing ".
The only other thing I would suggest is using BINMODE. See below for an
example routine.
> In EplSite WorkFlow i am using this routine and works fine:
>
> use CGI;
> $query = new CGI;
>
> if( $file = $query->par
Hi:
In EplSite WorkFlow i am using this routine and works fine:
use CGI;
$query = new CGI;
if( $file = $query->param('ImageName') )
{
@thefile = split(/\\/,$file);
$elements = @thefile;
$thedocument = "[EMAIL PROTECTED]";
$thedocument =~ s/\s/_/g;
Hi, I have this script.
[-
if (defined $fdat{ImageName}) {
open FILE, "> test ;
print FILE $buffer
while read($fdat{ImageName}, $buffer, 32768);
close FILE;
}
-]
File test exist but have size 0 k.
I have Embperl v 1.3.6.
Thanks, Rado
---
> I would like make a size limit for the uploaded file. How to do it ?.
>
Use APache configuration directive LimitRequestBody, see:
http://httpd.apache.org/docs/mod/core.html#limitrequestbody
Gerald
-
To unsubscribe, e-mail
> Hi,
>
> I have this problem, on my web I´m using file upload from the web page
> something like this:
>
>
>
>
>
> ..
> [-
> open FILE, "> /tmp/file.$$";
> print FILE $buffer while read($fdat{ImageName}, $buffer, 32768);
> close FILE;
> -]
one way is to use smaller chun
Hi,
I have this problem, on my web I´m using file upload from the web page
something like this:
..
[-
open FILE, "> /tmp/file.$$";
print FILE $buffer while read($fdat{ImageName}, $buffer, 32768);
close FILE;
-]
I would like make a size limit for the uploaded file. How to
11 matches
Mail list logo