web2py / py4web

Other
244 stars 126 forks source link

Form with dbio=False storing upload in folder #872

Open KabluBR opened 3 months ago

KabluBR commented 3 months ago

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.