We&#39;re currently investigating this issue right now. If you&#39;re on trunk this is an unresolved bug. <br><br>If you want a progress indicator you should checkout rev 222.<br><br>cheerio,<br><span class="sg"><br>Rogelio
</span><br><br><div><span class="gmail_quote">On 5/14/07, <b class="gmail_sendername">Mike Evans</b> &lt;<a href="mailto:mike@harmonypark.net">mike@harmonypark.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry to bug everyone with newbie questions today but hopefully this<br>one is more substantial than the last. I&#39;m trying to get a handle on<br>the upload progress code as found in the mrblog example. Firstly, I<br>found that the progress bar isn&#39;t displayed given the current code in
<br>trunk, as its CSS and the link to mup.js in views/files/start.herb<br>are inside &lt;% throw_content :header %&gt;, but the files/start action is<br>rendered without a layout. Removing either the throw_content or<br>the :layout =&gt; :none in the controller solves this.
<br><br>However, for me the bar stays on 0% until the upload is complete, at<br>which point it jumps to 100%. When uploading a 350Mb file locally, it<br>appears that although the periodic polling occurs, the upload is<br>
considered to be finished almost immediately it begins:<br><br>1179176946: Added<br>1179176946: Marking<br>1179176946: Marking<br>1179176946: Marking<br>1179176946: Added<br>1179176946: Finished<br>{&quot;action&quot;=&gt;&quot;progress&quot;, &quot;controller&quot;=&gt;&quot;files&quot;, &quot;upload_id&quot;=&gt;&quot;1179176946&quot;}
<br>1179176946: Added<br>1179176946: Finished<br>{&quot;action&quot;=&gt;&quot;progress&quot;, &quot;controller&quot;=&gt;&quot;files&quot;, &quot;upload_id&quot;=&gt;&quot;1179176946&quot;}<br>1179176946: Added<br>1179176946: Finished
<br>{&quot;action&quot;=&gt;&quot;progress&quot;, &quot;controller&quot;=&gt;&quot;files&quot;, &quot;upload_id&quot;=&gt;&quot;1179176946&quot;}<br>...<br><br>In reality, the upload takes a couple of minutes. (Even copying the
<br>file locally takes more than a minute.)<br><br>Can anyone point me in the right direction? I&#39;m not sure where the<br>Mongrel::Upload class is defined - I can see that the debug output<br>above is coming from merb-0.3.1
/lib/merb/merb_upload_progress.rb as<br>required in merb_upload_handler.rb, but I don&#39;t understand how<br>request_progress is called to update the :size and :received<br>counters, nor why the upload is treated as over almost before it starts.
<br><br>I&#39;m testing on ruby 1.8.6 on Mac OS X 10.4.9 with Mongrel 1.0.1.<br><br>Thanks for any help,<br>Mike<br><br><br>On 14 May 2007, at 19:30, Ezra Zygmuntowicz wrote:<br><br>&gt; Mike-<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What version of mongrel do you have installed? This error looks
<br>&gt; like you have an outdated mongrel. Install mongrel 1.0.1 an d this<br>&gt; will go away.<br>&gt;<br>&gt; Cheers-<br>&gt;<br>&gt; -Ezra<br>&gt;<br>&gt;<br>&gt; On May 14, 2007, at 10:16 AM, Mike Evans wrote:<br>&gt;
<br>&gt;&gt; Hi, first off thanks Ezra for Merb - it&#39;s certainly interesting and<br>&gt;&gt; I&#39;m keen to have a play. However, I&#39;m having difficulties in getting<br>&gt;&gt; started. I&#39;ve followed the docs for setting up mrblog and everything
<br>&gt;&gt; seems to be installed correctly, and merb appears to start fine:<br>&gt;&gt;<br>&gt;&gt; $ merb<br>&gt;&gt; you must install the markaby gem to use .mab templates<br>&gt;&gt; you must install the haml gem to use .haml templates
<br>&gt;&gt; ActiveRecord session mixed in<br>&gt;&gt; Rails session compatibilty on.<br>&gt;&gt; Compiling routes..<br>&gt;&gt; merb init called<br>&gt;&gt; Merb started with these options:<br>&gt;&gt; ---<br>&gt;&gt; :dist_root: /path/to/merb/mrblog/dist
<br>&gt;&gt; :allow_reloading: true<br>&gt;&gt; :environment: development<br>&gt;&gt; :merb_root: /path/to/merb/mrblog<br>&gt;&gt; :cache_templates: true<br>&gt;&gt; :use_mutex: true<br>&gt;&gt; :config: dist/conf/mup.conf
<br>&gt;&gt; :host: <a href="http://127.0.0.1">127.0.0.1</a><br>&gt;&gt; :show_error: true<br>&gt;&gt; :port: &quot;4000&quot;<br>&gt;&gt; :sql_session: true<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; However any request to <a href="http://127.0.0.1:4000">
127.0.0.1:4000</a> returns:<br>&gt;&gt;<br>&gt;&gt; Mon May 14 17:55:30 BST 2007: ERROR: undefined method `each&#39; for<br>&gt;&gt; #&lt;MerbUploadHandler:0x234bcfc&gt;<br>&gt;&gt;<br>&gt;&gt; with nothing in the browser or in the log. Similarly, using a newly
<br>&gt;&gt; generated test app, I get:<br>&gt;&gt;<br>&gt;&gt; Mon May 14 17:56:27 BST 2007: ERROR: undefined method `each&#39; for<br>&gt;&gt; nil:NilClass<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; I&#39;ve tried both installing via gem and from trunk. Without a trace
<br>&gt;&gt; and a line number it&#39;s hard to know where to start. Am I missing<br>&gt;&gt; something really obvious here? It&#39;s been known to happen before...<br>&gt;&gt; Any help much appreciated!<br>&gt;&gt;<br>&gt;&gt; Cheers,
<br>&gt;&gt; Mike<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Merb-devel mailing list<br>&gt;&gt; <a href="mailto:Merb-devel@rubyforge.org">Merb-devel@rubyforge.org</a><br>&gt;&gt; <a href="http://rubyforge.org/mailman/listinfo/merb-devel">
http://rubyforge.org/mailman/listinfo/merb-devel</a><br>&gt;<br>&gt; -- Ezra Zygmuntowicz-- Lead Rails Evangelist<br>&gt; -- <a href="mailto:ez@engineyard.com">ez@engineyard.com</a><br>&gt; -- Engine Yard, Serious Rails Hosting
<br>&gt; -- (866) 518-YARD (9273)<br>&gt;<br>&gt;<br><br>_______________________________________________<br>Merb-devel mailing list<br><a href="mailto:Merb-devel@rubyforge.org">Merb-devel@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/merb-devel">
http://rubyforge.org/mailman/listinfo/merb-devel</a><br></blockquote></div><br>