I only want to extract the "hello world" part.
I found a solution in the cookbook.
to extract the file name and input file.
On Tuesday, September 4, 2012 12:57:01 AM UTC+8, Chris Lambacher wrote:
> Hi,
> I think you are looking for request.body or request.body_file:
> http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/web...
> -Chris
> On Sat, Sep 1, 2012 at 8:23 AM, Yang Yang <come...@gmail.com <javascript:>
> > wrote:
>> Hi All,
>> I've a multform post request look like this:
>> --xxxxxx
>> Content-Disposition: form-data; name="userfile"; filename="test.txt"
>> Content-Type: text/plain
>> Hello World
>> --xxxxxx--
>> How could I extract the "Hello world" from the request.
>> Thanks in advance.
>> best regards
>> Yang
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-discuss" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/pylons-discuss/-/OqOcyXv6IZIJ.
>> To post to this group, send email to pylons-...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to
>> pylons-discus...@googlegroups.com <javascript:>.
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-discuss?hl=en.
> --
> Christopher Lambacher
> ch...@kateandchris.net <javascript:>