Hi David,

What does this metadata look like? If it's HTTP-style headers, then it
probably _is_ a multipart form, and you should be handling it in the
standard way, using self.request.POST or self.request.get().

-Nick

On Fri, Jun 17, 2011 at 4:12 AM, David Ngugi <[email protected]> wrote:

> Hi NIck, if I do self.request.body, I also get a lot of meta-data
> attached to the file's contents which I don't want. Is it possible to
> just get the file part only?
>
> On 6/15/11, Tim <[email protected]> wrote:
> >
> > Thanks for that Nick.
> >
> > Seems I must have been sleeping when looking at that part of the webapp
> docs
> > - getting the appropriate field from the request.POST
> >
> >   file = self.request.POST["filefield"]
> >
> > gets me an object with properties "filename" and "type" and "value" (for
> the
> > actual decoded data) - Nick's blog post then shows how to store this in
> the
> > datastore.
> >
> > Apologies for being so thick
> >
> > --
> > Tim
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/google-appengine/-/daSNSHmoQEEJ.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine?hl=en.
> >
> >
>
>
> --
> Check out my blog:
> http://www.crazyblackkenyanwizard.blogspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to