Hai
According to the http://wiki.rubyonrails, I am trying to do the file
uploading .
here i am sending my code
@[email protected][‘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