From: patrick-may@... (Patrick May) Date: 2002-09-11T04:55:33+09:00 Subject: Re: multipart form data & other form values As noted, you need to change the value attribute to a name attribute: RayZ wrote in message news:<15514567426.20020910122144@gloria.aaanet.ru>... > ----------------------------------------------- >
action="/cgi-bin/test.rb"> > some field: > attach file: > >
I'd like to point out how narf handles this: require 'narf' Web.process{ |cgi| someFile = cgi['attach_file'] # <= returns Web::Upload someText = cgi['sometext'] # <= returns String } Narf is an alternative cgi library. Check out the docs at: http://narf-lib.sourceforge.net I'm doing alot of bug fixes / development, so I'd recommend getting the code via cvs. Instructions are at: http://sourceforge.net/cvs/?group_id=53059 ~ Patrick