file upload progress?

11 views
Skip to first unread message

Andrew Kuklewicz

unread,
May 11, 2008, 8:36:42 AM5/11/08
to Phusion Passenger Discussions
Has anyone figured out how to get file upload progress using passenger
yet?
-Andrew Kuklewicz

rogerdpack

unread,
May 23, 2008, 4:57:42 PM5/23/08
to Phusion Passenger Discussions
probably the same way you do for normal rails. Either just wait or
use backgroundrb [or maybe something better exists out there]. Or is
there a mod_rails specific thing for it?
-R

Hongli Lai

unread,
May 23, 2008, 5:55:32 PM5/23/08
to phusion-...@googlegroups.com
rogerdpack wrote:
> probably the same way you do for normal rails. Either just wait or
> use backgroundrb [or maybe something better exists out there]. Or is
> there a mod_rails specific thing for it?
> -R

Currently we don't provide a way to determine upload progress.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Piotr Sarnacki

unread,
Jun 16, 2008, 7:39:00 PM6/16/08
to Phusion Passenger Discussions
I've wrote apache upload progress module. It is inspired by nginx
upload progress module. I have a few applications relying on nginx
module, so my module for apache reports uploads with JSON response in
the same format. I've launched it on my server and everything seems to
work fine without any single change in code.

You can grab code on github:
http://github.com/drogus/apache-upload-progress-module/tree/master

upload_progress_module works well with passenger, but you can use it
even without mod_passenger. It is hooked using APR_HOOK_FIRST so
reports are handled before mod_passenger.

Although upload_progress_module works on my server, it is still in
development, so be careful - I don't know if it's stable.

I would be grateful for any help with improving, debugging and testing
this module (i'm not C developer ;-).


On May 23, 11:55 pm, Hongli Lai <hon...@phusion.nl> wrote:
> rogerdpack wrote:
> > probably the same way you do for normal rails. Either just wait or
> > use backgroundrb [or maybe something better exists out there]. Or is
> > there a mod_rails specific thing for it?
> > -R
>
> Currently we don't provide a way to determineuploadprogress.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

Hongli Lai

unread,
Jun 17, 2008, 2:12:07 AM6/17/08
to phusion-...@googlegroups.com
Piotr Sarnacki wrote:
> I've wrote apache upload progress module. It is inspired by nginx
> upload progress module. I have a few applications relying on nginx
> module, so my module for apache reports uploads with JSON response in
> the same format. I've launched it on my server and everything seems to
> work fine without any single change in code.
>
> You can grab code on github:
> http://github.com/drogus/apache-upload-progress-module/tree/master
>
> upload_progress_module works well with passenger, but you can use it
> even without mod_passenger. It is hooked using APR_HOOK_FIRST so
> reports are handled before mod_passenger.
>
> Although upload_progress_module works on my server, it is still in
> development, so be careful - I don't know if it's stable.
>
> I would be grateful for any help with improving, debugging and testing
> this module (i'm not C developer ;-).

Nice work. :) I'll refer to this in the manual.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Piotr Sarnacki

unread,
Jun 17, 2008, 3:50:42 AM6/17/08
to Phusion Passenger Discussions
> Nice work. :) I'll refer to this in the manual.

Thanks :)

I'll write some tutorial on how to implement progress bar using Rails
and jQuery/Prototype. :)

> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

Piotr Sarnacki

unread,
Jun 17, 2008, 3:58:17 AM6/17/08
to Phusion Passenger Discussions
Don't know much about licenses and such stuff, but I've added MIT
license - it seems liberal and simple. :)

Piotr Sarnacki

unread,
Jun 18, 2008, 5:36:52 PM6/18/08
to Phusion Passenger Discussions
Reply all
Reply to author
Forward
0 new messages