From: Stefan Scholl Date: 2001-10-29T00:59:59+09:00 Subject: [ruby-talk:23684] Re: CGI and file upload. Dave Thomas writes: > In the PickAxe we say that "When dealing with a multipart form, the > array returned by CGI#[] is composed of objects of class Tempfile, > with the following dynamically added methods..." > Did we mess up? The book is right. But the cgi library is a bit complicated. All of the parameters get Tempfile objects. Which is bad because sometimes you have a existing cgi programm and just want to add a file upload. Now you have to handle _all_ parameters in a different way. They are tempfiles now. And don't forget to close them!