B
Bryan
Hi,
I need to enforce both maximum file size for uploads via CGI.pm, but
additionally I need to limit files by the number of lines as well.
CGI.pm apears to provide for max file size:
$CGI:
OST_MAX=1024 * 100 ;
But I cannot find anything on how to limit by line length. Do I have to
check after the file is done with something like this:
my @data = split(" ", `/usr/bin/wc -cl $file` );
my ( $lines, $bytes ) = @data;
Is there no way to do it on the fly?
Thanks,
Bryan
I need to enforce both maximum file size for uploads via CGI.pm, but
additionally I need to limit files by the number of lines as well.
CGI.pm apears to provide for max file size:
$CGI:
But I cannot find anything on how to limit by line length. Do I have to
check after the file is done with something like this:
my @data = split(" ", `/usr/bin/wc -cl $file` );
my ( $lines, $bytes ) = @data;
Is there no way to do it on the fly?
Thanks,
Bryan