Hi there,

Assuming I've got a simple "webservice" that accepts a company_id, and 
photo_image via a form POST.

db.table('person',
    Field('company', 'integer', required = True),
    Field('photo_image', 'upload', required = True, requires = IS_IMAGE())

def webservice_name():
  person_id = db.person.insert(company = request.vars.company_id,
                                            photo_image = 
db.person.image.store(request.vars.photo_image.file, 
request.vars.photo_image.filename))

How would I call the validate_and_insert version of the above? I.e. invoke 
"validate" then "store" the image. (Couldn't seem to find any examples.)

Thanks in advance,
Matt

Reply via email to