On 7/2/06, <b class="gmail_sendername">Zed Shaw</b> <<a href="mailto:zedshaw@zedshaw.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">zedshaw@zedshaw.com</a>> wrote:<div><span class="gmail_quote">
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Then create a mongrel config script with called mongrel.conf with:<br><br> uri "/", :handler => Upload.new("/upload"), :in_front => true<br><br>And then make sure you have a Rails handler which can handle requests
<br>for /upload and which can answer requests for /progress with status.<br>The status comes from the Mongrel::Uploads singleton which keeps track<br>of what's going on.</blockquote><div><br>thanks for the reply Zed, but I'm still a bit confused.. I've added the
mongrel.conf file with the line you suggested, and then added a route from /upload to an action method called "upload" in my site_controller, but I'm not sure what the upload method (or progress method) is supposed to do. Is the upload method supposed to be the
action that's called from my file upload form? Am I supposed to call Mongrel::Uploads.initialize and then interact with the uploads singleton myself? Does anybody have a working upload form that I can take a look at to see how it should be done?
<br><br>I realize that this is still in a pretty rough form, but I was hoping I'd be able to test this out, since I had previously been using the rails upload progress plugin with apache 1.3 and mod_fastcgi, and it would work intermittently.. I wanted to see how the mongrel version compares as far as reliability. Thanks,
<br><br>Mike<br></div></div><br>