Example: form = Form( db.attach, dbio=False ) db.define_table('attach', Field('file', 'upload', notnull=True, autodelete=True)) when you create the form this way, it not stores data on db but still writes the image in upload folder.