if you have: def mycreate(): return dict(form=crud.create(db.mytable))
you normally call: http://..../mycreate to get the form. You can also call it with http://..../mycreate.json?json=[] where [] is a URLencoded JSONencoded dictionary containing the new record. The ".json" instructs web2py not to generate the form but to expect a json input. This is experimental but give it try. Should work for any page including crud forms. Massimo On Aug 16, 10:53 am, Ian Reinhart Geiser <ian.gei...@gmail.com> wrote: > Greetings, Currently I have a lovely web form that was fairly easy to > implement with web2py. I now also have cron script that is uploading > snapshots of an image from a webcam to my website. What I would like > to do is have a service url that I could post my image to and have it > automatically be added vs going through the form. > > From what I can tell is I would have a run REST url and i would read > the request.body object to get the file. What I am unclear on is how > I might put this on the filesystem and the needed links in the > database correctly. Do I have to roll my own update code vs using the > DAL? > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---