Can you be more specific on your example? I found this on stackoverflow too. but I am not sure how to use this <form element name with file>.
On Monday, June 8, 2009 2:59:47 AM UTC+8, Todd wrote: > > It took me hours to discover this, and I wanted to share, since I > could not find it anywhere else on the net. > > To get the filename of an uploaded file ( via the Content-Disposition > in the HTTP POST ), use: > > self.request.params[<form element name with file>].filename > > I suppose this may have been obvious to some, but using > self.request.get() always returns the String value of the form > parameter. Appengine overrides the WebOb request to abstract the > cgi.FieldStorage object ( which holds the filename ) from you. > > Hope this helps. > > -Todd -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
