found the answer here: http://groups.google.com/group/web2py/msg/f755a9d17eaeac26
the format is this: db.MYTABLE.insert(MYFIELD=db.MYTABLE.MYFIELD.store(request.vars.MYFORMFIELD.file,request.vars.MYFORMFIELD.filename)) one can of course insert any other fields using this insert function. On Aug 27, 6:33 pm, Carl <[email protected]> wrote: > thanks for replying. > It's not an image that's being uploaded but instead an XML file which > I will be parsing the contents of into a database table. > > Carl > > On Aug 27, 5:24 pm, "Martin.Mulone" <[email protected]> wrote: > > > > > do you want to access to the image uploaded with form for example?. > > use download function in controller > > > <img src="{{=URL('download', args=item.image)}}" > > width="200px" /> > > > On Aug 27, 12:08 pm, Carl <[email protected]> wrote: > > > > I'm using Pyjamas to build my client app and Web2py to build the > > > server. > > > > I'm submitting a HTML form (generated by Pyjamas) to the Web2py server > > > code. > > > > Where should I look to see how I can handle the submission using > > > Web2py? > > > > I already have a function defined in /app/controllers/default.py which > > > gets called with the form data from the web browser (stuff like > > > request.vars). > > > > The return value from my function is correctly returned to the client > > > but obviously I need to access the file the user selected and store it > > > in the database (I'm using GAE so storing in the database is the route > > > I need to take) > > > > Any pointers?

