Dear all,

I have a doubt, iam not getting the uploaded file when iam uploading
using ajax form like,

   <% remote_form_for(:videos, :url => {:controller => :videos, :action
=> :add },
   :html => { :multipart => true, :ajaxupload => true }) do |form| %>

   File <%= form.file_field :uploaded_data %><br/><br/>

   <%= submit_tag "uploadfile"%>

In controller when i call

  params[:videos][:uploaded_data], iam getting a string like filename
<sample.gif>

but i was not able to reterive the uploadedfile and when i call methods
like

params[:videos][:uploaded_data].original_filename,
params[:videos][:uploaded_data].read iam getting errors.

So could anyone please suggest how to perform file uploading using ajax.

Thanks in advance

Regards,
Martin
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to