Stephan, I did this in my code with a progress bar. It is not 100%  
accurate but is close enough.

       my $size = $ENV{CONTENT_LENGTH};  # $upload->size();  (size()  
call returns zero??)

-Bill

On Sep 30, 2006, at 5:24 AM, Stephan Jennewein wrote:

> Hi,
>
> I'm using Apache2, mod_perl2, libapreq2.
>
> What I want to do is a upload progressbar with Ajax.
>
> My problem is that I need the size of file which you wants to upload
> to calculate the amount of time it will take to upload it. But through
> apache2::upload I only get this Size when the upload finished  
> because of
> the tempfile it creates. Is there a way without using CGI to get the
> size ?
> For the progressbar I can use the hooks from apache2::request or not ?
>
> Thanks for your help in advance
>
> Stephan
>
>
> ---------------------------------------------------------------------- 
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys -- and earn  
> cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to