Hi, In the example below, the file isn't being uploaded as part of a form - it's simply the contents of the request body. You can access it with self.request.body.
-Nick Johnson On Mon, Jun 13, 2011 at 4:36 PM, crazywizard <davyng...@gmail.com> wrote: > I need to handle uploaded files on my server. Problem is, the uploads > come from other user applications that I have no control over. My > problem centers around how to get the uploaded file without > referencing or knowing the index/key name of the file. > My app engine python code: > file=self.request.POST['file'] > > As you can see, I have to explicitly define the key name as 'file'. > However, the uploading application doesn't have this defined. > Pys60 code: > conn=httplib.HTTPConnection("www.myserver.com") > conn.request("POST", "/upload", 'file") > > This only defines the method, destination, and file object. How can I > still get the POSTED file? > Please do not ask me to change or manipulate the client upload > procedures/functions because I don't have access to them.! > > -- > 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. > > -- 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 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.