# Upload Progress Bar not showing

**URL:** <https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702>\
**Category:** Rails\
**Created:** [April 25, 2006, 12:42am UTC](https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702 "2006-04-25T00:42:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonlog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Post date:** [April 25, 2006, 12:42am UTC](https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702/1 "2006-04-25T00:42:38Z")

</div>

Hi. I’m setting up an upload form for internal users of a Rails site,  
and I’m trying to use the Upload Progress Bar plugin from  
[http://sean.treadway.info/demo/upload/](http://sean.treadway.info/demo/upload/). I followed the directions as set  
out in the Rails Wiki  
([http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar](http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar)).

Basically the problem is no progress bar or any upload information shows  
up. In WEBrick, I just get “Upload starting…” and then “Upload  
finished” after which the page gets redirected as I have it set up in  
the view.

I also have my Rails application set up for Apache, so when I try the  
same thing, upload a file, I get the same message, “Upload starting…”  
then “Upload finished”, only I don’t get a redirect and the file I  
uploaded isn’t there.

This is what my uploads controller looks like:

class UploadsController \< ApplicationController  
before\_filter :authorize  
upload\_status\_for :new

[…]

def new  
if request.get?  
@upload = Upload.new  
else  
@upload = Upload.new(@params[“upload”])  
if @upload.save  
flash[:notice] = “File uploaded sueccessfully.”  
redirect\_to :action =\> “list”  
end  
end  
end  
end

And the ‘new’ upload view:

### Upload File

\<%= form\_tag\_with\_upload\_progress %\>

\<%= render :partial =\> ‘upload\_form’ %\>

\<%= upload\_status\_tag %\>

\<%= link\_to '« Show All Uploads', :action =\> 'list\_uploads' %\>

Also, if this affects the uploading progress bar process, in my model  
I’m specifying that I’ll have the upload saved in the filesystem. Here  
is what the ‘upload’ model looks like:

class Upload \< ActiveRecord::Base  
has\_one :movie  
belongs\_to :movie

def file=(upload\_file)  
File.open(“files/#{upload\_file.original\_filename}”, “w”) { |f|  
f.write(upload\_file.read) }  
self.filename = upload\_file.original\_filename  
self.content\_type = upload\_file.content\_type  
self.size = upload\_file.size.to\_s  
end

def before\_destroy  
File.delete(“files/#{self.filename}”)  
end

def file\_data  
IO.read(“files/#{self.filename}”)  
end  
end

For the reference, I’m on DreamHost, using Apache 1.3, Ruby 1.8.2, and  
Ruby on Rails 1.1 (I have it installed in vendors/rails-1.1). Any help  
on this would be much appreciated. Thanks.

-Jon

---

<div class="post-metadata">

**Author:** ![jonlog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Post date:** [September 23, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702/2 "2006-09-23T15:52:47Z")

</div>

Jon G. wrote:

> Hi. I’m setting up an upload form for internal users of a Rails site,  
> and I’m trying to use the Upload Progress Bar plugin from  
> [http://sean.treadway.info/demo/upload/](http://sean.treadway.info/demo/upload/). I followed the directions as set  
> out in the Rails Wiki  
> ([http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar](http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar)).

Hi Jon

Jon have u checked that sean teadways checklist link on that progress  
bar’s link u have specified.

First see checklist is shows the basic environment need to work progress  
bar properly

- Pratiksha

---

<div class="post-metadata">

**Author:** ![jonlog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Post date:** [December 13, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/upload-progress-bar-not-showing/58702/3 "2007-12-13T18:57:19Z")

</div>

Did you get the progress bar work??

HItesh

On Sep 23 2006, 6:52 pm, Pratiksha G. \<rails-mailing-l…@andreas-
