From: ts Date: 2001-01-27T03:10:19+09:00 Subject: [ruby-talk:9945] Re: Questions about CGI >>>>> "E" == Ernest Ellingson writes: E> For example I have a form with and name='"send_file"> in a multipart form. How do I invoke the methods E> "read, local_path, original_filename, content_type"? The example given in cgi.rb is === GET MULTIPART FORM VALUES require "cgi" cgi = CGI.new values = cgi['field_name'] # <== array of 'field_name' values[0].read # <== body of values[0] values[0].local_path # <== path to local file of values[0] values[0].original_filename # <== original filename of values[0] values[0].content_type # <== content_type of values[0] and values[0] has Tempfile class methods. (Tempfile class object has File class methods) Guy Decoux