Are users logged in? Usually you do it like this:
Field('created_by', db.auth_user, default=auth.user_id)

Do you allow users to inset an image without registering or logging in? If 
so, you may need to handle it differently, possibly with an onvalidation 
function that accounts for there being no user.

Reply via email to