Displaying 3 results from an estimated 3 matches for "uploadscontrol".
2011 May 06
3
Rails 3 Routing problems
I have an UploadsController and UsersController where Users''
has_many :uploads'' via polymorphic attachment in uploads.rb.
Now we i navigate to http://localhost:3000/users/1/uploads
I get re-routed to Uploads#index and rendered is called multiple times
as shown below:
Started GET "/users/1/uploads...
2007 May 18
4
No return status from mongrel upload progress (and thus no updates on the bar)
...draw updates - if I connect with irb (as per the
upload_progress page)
irb(main):001:0> uploads = get_status
=> #<DRb::DRbObject:0xb7d1ef04 @ref=nil, @uri="druby://0.0.0.0:2999">
irb(main):002:0> uploads.list
=> []
Nice regular output in my development.log:
Processing UploadsController#upload_progress (for 127.0.0.1 at
2007-05-18 15:20:29) [POST]
Parameters: {"action"=>"upload_progress", "controller"=>"uploads",
"upload_id"=>"aff07334-04ee-11dc-bd4b-000d608392b8"}
Completed in 0.00966 (103 reqs/sec) | Rende...
2006 Apr 24
1
Upload Progress Bar not showing
...ation 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."...