Beat me, but I am using the simplest download function > > def download(): > return response.download(request,db) > > and it works without database entries. > Well - I got a table defined like this: > > db.define_table("t_files", > #Field('file', 'upload', uploadfield='picture_file'), > Field('f_file', 'upload'), > migrate=settings.migrate) > > But there is nothing in it. >
Yeah, it's sufficient that you have defined the table. response.download()simply needs to access the t_files.f_file Field object in order to get the upload folder (which is an attribute of that Field) -- it doesn't actually query the database itself. Anthony