Sean Treadway
2005-Jul-18 19:20 UTC
Fwd: Problems with the upload progress bar after updating to 0.13
Summing up some of the known requirements and working environments of
the upload progress into a checklist:
Ruby:
* Running the command `ruby -v` should print "ruby 1.8.2
(2004-12-25)"
Web server:
* Apache 1.3, Apache 2.0 or Lighttpd 1.4
FastCGI bindings:
* > 0.8.6 and must be the compiled C version of the bindings
* The command `ruby -e "p require(''fcgi.so'')"`
should print "true"
Apache/Lighttpd FastCGI directives:
* You must allow more than one FCGI server process to allow
concurrent requests.
* If there is only a single FCGI process you will not get the
upload status updates.
* You can check this by taking a look for running FCGI servers
in your process list
during a progress upload.
Environment:
* Add the following line to your config/environment.rb and
restart your web server.
* ActionController::Base.enable_upload_progress
Development log:
* When the upload progress is enabled by you will find something
the following lines:
* "Multipart upload with progress (id: 1, size: 85464)"
* "Finished processing multipart upload in 0.363729s"
* If you are properly running multiple FCGI processes, then you
will see multiple
entries for rendering the "upload_status" action before the
"Finish processing..."
log entry. This is a *good thing* :)
Session:
If you store model objects in your session, you''ll need to grab
Rails version 0.13.1
OS:
* FreeBSD 4.x and 5.x has shown to cause some unpredictable
behavior with
the FastCGI Bindings.
* No reports from Windows users yet.
Thanks to all for the positive feedback!
-Sean
Begin forwarded message:
> From: Joshua <joshua-q0Yur7km1XpBDgjK7y7TUQ@public.gmane.org>
> Date: July 16, 2005 12:02:09 PM GMT+02:00
> To: Sean Treadway <seant-4hAOBN7YpypC/EKHXe1xOQ@public.gmane.org>
> Subject: Re: [Rails] Problems with the upload progress bar after
> updating to 0.13
>
>
> Sean Treadway wrote:
>
>
>> Joshua, are you seeing any javascript errors when using Firefox?
>>
>
> It turned out the problem was that I was only running one fastcgi
> process for development mode, as soon as I upped the # of
> processes it worked fine, then broke again when I went back to one.
>
> It works like a charm, thanks!
>
> joshua
>
>
>> On Jul 8, 2005, at 11:46 PM, Joshua wrote:
>>
>>
>>> I had the upload progress bar running fine with a patched rails.
>>> I just upgraded to 0.13 and I''ve switched my app around
>>> to use the new api, but it''s having problems.
>>>
>>> The files upload and process fine, but the indicator does not
>>> update, except when the upload is done.
>>> Looking at the logs it looks like upload_status is only being
>>> called once during the entire upload.
>>>
>>> I''m running apache 1.3 w/ fastcgi. I updated all my
javascript
>>> files, the dispatchers, and enabled upload progress in my
>>> environment.rb
>>>
>>> joshua
>>> _______________________________________________
>>> Rails mailing list
>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>>
>>>
>>
>>
>
>