Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4670

Read data from enctype="multipart/form-data" form

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!feeder.news-service.com!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From Kevin DeValck <kevin_de_valck@hotmail.com>
Newsgroups comp.lang.ruby
Subject Read data from enctype="multipart/form-data" form
Date Tue, 17 May 2011 06:41:10 -0500
Organization Service de news de lacave.net
Lines 19
Message-ID <488bff8c1be56ed2c2ba653589eaa42e@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1305637297 88547 65.111.164.187 (17 May 2011 13:01:37 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Tue, 17 May 2011 13:01:37 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 383382
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <488bff8c1be56ed2c2ba653589eaa42e@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:4670

Show key headers only | View raw


Hi,

i'm trying to upload a picture on a ruby server. I succeed in it when i
make a form with only the abbility to upload a file.
But the problem is when i try to make a form with additional information
like a textarea.
So my question is, how can i retreive the parameters from a from with
enctype="multipart/form-data".

In a normal form i can do like this to retreive the info: numb =
@cgi["numb"]
But with enctype="multipart/form-data"  it says that numb is stringio or
a file. So how can i get that original data that was in it?

Thanks

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Read data from enctype="multipart/form-data" form Kevin DeValck <kevin_de_valck@hotmail.com> - 2011-05-17 06:41 -0500
  Re: Read data from enctype="multipart/form-data" form 7stud -- <bbxx789_05ss@yahoo.com> - 2011-05-17 13:14 -0500

csiph-web