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 post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to