Hi again,

Thanks to those who helped me with the install issue.  I've mostly
resolved that, and now have a new question that seems much more
mod-perl-ish:

I have code that does essentially this:

sub handler {
  my $r = shift;
  $r = Apache::Request->new($r);
  my $handle = $r->upload('filename');
  my $fh = $handle->fh;
  ...
}

I'd like to write upload code that shows progress (via a fork and
refresh header trick - don't worry about that).  What I'm wondering is,
by the time I get $fh above (or even by the time I'm in the handler for
all I know) do I already have the entire file uploaded, or is it done
lazily as reads are performed on $fh?  I'm not very good at reading this
XS stuff, but I looked at libapreq and from that I suspect it's all done
up front.  Is there any way to read it incrementally?

Has anyone solved this problem before?  I want to provide an upload
function for my web app that shows the user periodic progress or maybe
even allows them to cancel it part way through.  Is this too much of a
reach for http/mod_perl?

Thanks in advance,

//Thomas
Thomas K. Burkholder
[EMAIL PROTECTED]

Reply via email to