Hi,
Apologies if this has been asked and answered previously.

I just started looking at Merb today as I'd like to use it as an upload 
server, especially the upload progress feature.

I've installed the latest Merb gem (0.4.2) and created a new application 
to test out uploading.  I took elements of the mr_blog application and 
integrated them into it.  I realise this application is out of date but 
I updated it with some newer code posted by somebody else on this list 
(sorry, I forget the name) and I have uploading working.  However, I 
can't get the upload progress bar to work.

When the upload begins, 0% appears in the progress bar and it never 
changes, the upload finishes and redirects.  I've been trying to figure 
this out for most of today with no luck so am hoping some kind soul here 
can help me out.

Rather than going into further specifics, here is my application code, 
if somebody would be willing to download it to try and diagnose the 
problem, it would be much appreciated.

Download here: http://www.4l.ie/merb/upload_progress.zip (100k)

Here's a copy of the merb log during a typical upload of a 150 meg file 
on my local machine (my comments are in brackets):

http://www.4l.ie/merb/merb_upload.log

At this point I believe the issue lies with the @upstatus instance 
variable in controllers/files#progress being nil so the 
UploadProgress.update (javascripts/mup.js) function call in 
views/files/progress.js.erb is not being called, hence why nothing is 
happening to the progress bar.

I'm working on OS X 10.4.10, ruby 1.8.4, mongrel 1.1.3 and have the 
various merb gem dependencies installed.

Thanks in advance for any assistance.

Regards,

Niall Mullally
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to