Hi, I’m trying to get this progress bar plugin working, but I’m
having some trouble.
I’m running Apache 2.0.52 with mod_fcgid on Mac OS X. Everything
seems to be working fine, but the progress bar simply doesn’t work.
In my log I get:
Multipart upload with progress (id: 1, size: 176731770)
Finished processing multipart upload in 18.96244s
but no requests in between. I read in the doc that there should be
requests in between to get the upload status… but it looks like
either my browser isn’t even making the requests or the server doesn’t
have enough processes to handle it. Anyway, I’m getting this
javascript error in Firefox when I click ‘Upload’:
Error: $ is not defined
Source File: http://photos/album/new/4
Line: 1
Line 1 is simply:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" with no $ to be found... so this line number is clearly wrong. I am assuming it is coming from the generated javascript from the plugin helpers. Is this what is preventing the requests from being made? How do I go about fixing it? Thanks, Ryan Here is all the relevant code: --Generated HTML-- <iframeid=“UploadTarget1” name=“UploadTarget1” src=“”
style=“width:0px;height:0px;border:0”>
–View–
<%= form_tag_with_upload_progress({:action => ‘new’}, {
:begin => “new Effect.Appear(‘status’)”,
:finish => “$(‘message’).innerHTML = arguments[0]” }) %>
<%= file_field :album, :file %>
<%= submit_tag ‘Upload’ %>
<%= upload_status_tag %>
<%= end_form_tag %>
–Controller–
upload_status_for :new
def new
…
end