From: Austin Ziegler Date: 2003-11-04T08:13:06+09:00 Subject: Re: CGI uses file size to distinguish between regular values and files On Tue, 4 Nov 2003 07:17:33 +0900, John W Higgins wrote: > The original response from Simon Kitching was the best on this topic. Actually, my complaint is subtly different than the OP's complaint. cgi.rb is *incorrect* in how it behaves because what is returned will vary based on whether or not a multipart form is provided *or* whether the size is the same or not. Also, it will extend tempfile objects, but it will not extend StringIO objects -- so the "type" isn't the same using ducktyping, either. The behaviour isn't consistent, thus it's wrong. I suggest you reread my complaint a bit more thoroughly. There is no way that CGI can be seen to be correct in this case. -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2003.11.03 * 18.10.05