That should work. You just need something to grab it once it's
submitted:

class Upload(webapp.RequestHandler):
   def post(self):
      datafile= self.request.get('datafile')


On Jun 11, 7:56 pm, Gaurav <[email protected]> wrote:
> Hi,
>
> I want to pass the values to insert query in python. I am passing a
> xml file as input so that python will read the input from XML and
> insert the values in tables on google app engine. I am facing a
> blocker where I am not getting the object of that file uploader in
> python. Has anybody worked on this? Kindly help as soon as possible.
>
> This is how I am creating HTML
> self.response.out.write("""
>           <form action="/sign" method="post" enctype="multipart/form-
> data">
>             <div><input type="file" name="datafile" size="40"></div>
>             <div><input type="submit" value="Sign Guestbook"></div>
>           </form>
>         </body>
>       </html>""")
>
> Regards,
> Gaurav Joshi

--~--~---------~--~----~------------~-------~--~----~
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