From: Javier Fontan Date: 2002-09-10T19:18:40+09:00 Subject: Re: multipart form data & other form values Hello, Why don't you put a name to this field, like you do in attachfile: some field: and read as attach_file somefield=cgi['somefield'].read bye On Tue 10 Sep 2002 10:21, RayZ wrote: > Hi! > Can anyone explain me how can i retrive other field values using > multipart form with attached file > > for example > ----------------------------------------------- >
action="/cgi-bin/test.rb"> > some field: > attach file: > >
> > > and then > > [test.rb] > -------------- > #!/ruby/bin/ruby > require 'cgi' > ... > someFile, = cgi['attach_file'] > data = someFile.read > > > how do i get 'sometext' value ? > any examples? > > thanx. > > __________________________________________________________________________ > > Andrew "RayZ" V Rumm | Web Developer | rayz@gloria.aaanet.ru | i(Q #620578 > __________________________________________________________________________ -- Javier Fontan Mui�os jfontan@cesga.es CESGA, Supercomputing Center of Galicia