Forum: Ruby on Rails Mongrel Upload Progress error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F.B. ten Kate (Guest)
on 2007-02-12 16:24
For the last hours i've tried to get the Upload progress plugin to work
by following the tutorial:

Now i have two problems.

1. There isnt any file beeing uploaded, maybe this is because i didnt
create the folder where it should upload (i've tried multiple locations
but i cant be 100% sure as to where) or its because of problem 2.

2. NameError (uninitialized constant Mongrel::Upload):

Now the 2nd error really got me beat, i've installed the plugin... yet
it still gives me this error in the log...

Now this is only the first couple of lines of the error i recieve but
thats usually where the problem is.

Anyone out there have any idea what the problem could be? Another thing
that happens is that (just like in another thread on these boards) the
progress bar goes from 0% instantly to 100% when its done, it doesnt
show any progress at all. But i suspect that this is all related to
problem #2
Vishnu G. (Guest)
on 2007-02-13 08:18
(Received via mailing list)
Did you load the plugin using mongrel_rails start -S <path to config
file> where config file is as described in: ?

F.B. ten Kate (Guest)
on 2007-02-13 11:06
Vishnu G. wrote:
> Did you load the plugin using mongrel_rails start -S <path to config
> file> where config file is as described in:
> ?
> Vish

I thought i was, after looking at the example on the tutorial:

mongrel_rails -d -p 3000 -S config/mongrel_upload_progress.conf

Which wouldnt work i tried:

mongrel_rails start "config/mongrel_upload_progress.conf"

forgetting the -S, either way it works now!!! thanks alot for the help
F.B. ten Kate (Guest)
on 2007-02-13 11:09
Actually, the progress part of the script is currently working, yet
nothing is beeing uploaded, this might be because i have absolutely no
idea where it's trying to upload the files to.

My best gues was "public/files/upload/" If this is the case do i need to
change the folder premitions before this starts working?

(note i run a Windows Vista system atm)

F.B. ten Kate
Vishnu G. (Guest)
on 2007-02-13 12:08
(Received via mailing list)
It's uploading to a temporary directory (Windows/Temp probably, check
your TEMP environment variable) and it's available under the
controller you post to as a regular Rails TempFile or StringIO

Do something like params[:file].read to get the file contents.

It's up to you to do whatever you want with this file.
will move it to the location of your choice.


On 2/13/07, F.B. ten Kate <removed_email_address@domain.invalid> wrote:
> F.B. ten Kate
> --
> Posted via
> >

This topic is locked and can not be replied to.