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

From Kevin DeValck <kevin_de_valck@hotmail.com>
Newsgroups comp.lang.ruby
Subject Read data from enctype="multipart/form-data" form
Date 2011-05-17 06:41 -0500
Organization Service de news de lacave.net
Message-ID <488bff8c1be56ed2c2ba653589eaa42e@ruby-forum.com> (permalink)

Show all headers | 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