if request.post? @fData = params[:photo] puts("\n\n"+@fData.content_type+"\n\n\n") # Here I am getting the right content type @fData.content_type = File.mime_type? (params[:photo].original_filename) # In the above statement, I am getting the error while reassigning the datatype. I am alrady using multipart in form # undefined method `content_type='' for #<File:C:/Users/dell/ AppData/Local/Temp/CGI55192-1> # {"photo"=>#<File:C:/Users/dell/AppData/Local/Temp/CGI55192-1>, "picture"=>{"id"=>"0"}} end --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---