Hai According to the http://wiki.rubyonrails, I am trying to do the file uploading . here i am sending my code @file_data=@params[''label_upload''][''send_file''] @params[''sendfile_label''][''filename''] @file_data.original_filename.gsub(/[^\w._-]/, '''') # This makes sure filenames are sane @params[''sendfile_label''][''file_content''] @params[''label_upload''][''send_file''].read @params[''label_upload''].delete(''send_file'') # let''s remove the field from the hash, because there''s no such field in the DB anyway. If i try to excute this code its giving the following error.. "undefined method `original_filename'' for "mydoc.doc":String" Can any body facing this kind of problem.. regards ramesh -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---