On Sun, Jul 02, 2006 at 08:56:53PM -0400, Zed Shaw wrote:
> The gist of it, if you're feeling adventurous, is to install the
> mongrel_upload_progress gem:
>
> gem install mongrel_upload_progress
>
> Then create a mongrel config script with called mongrel.conf with:
>
> uri "/", :handler => Upload.new("/upload"), :in_front => true
>
If you're running 0.3.13.3, you'll also need to supply the PATH_INFO to the
exact URL using the upload meter.
uri "/", :handler => Upload.new(:path_info => "/upload"), :in_front => true
If you're using the Mongrel 0.4 branch, you can just mount the handler anywhere
in the path above or on your upload pages. And it doesn't need to be in front,
it'll
get notifications regardless of its placement.
GemPlugin::Manager.instance.load "mongrel" => GemPlugin::INCLUDE
uri "/upload", :handler => plugin("/handlers/upload")
_why
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users