easy_swf_upload icon indicating copy to clipboard operation
easy_swf_upload copied to clipboard

:url parameters

Open jrmurad opened this issue 15 years ago • 1 comments

Using the swf_upload_area helper, I passed a route to :url along with an option like so:

:url => upload_images_path(:image_class => image_class)

The helper expands this as:

/images/upload?image_class=Photo

While the controller method ("upload", in this case) is called, it does not receive the parameter:

params[:image_class] does not exist (other params are there: Filename, authenticity_token, Upload, Filedata)

I tried to see if I could fix the problem within the javascript but I didn't see anything obvious. Is it the swf file which needs to change?

[Here's my route, for reference: map.resources :images, :collection => { :remove => :put, :upload => :post }, :member => { :toggle => :get }]

jrmurad avatar Feb 17 '10 17:02 jrmurad

Flash object does not recognize params after "?". I pass params via route, /:param1/:param2/:param3

over avatar Feb 17 '10 19:02 over