I've just been struck by the same issue when upgrading to Version 1.94.6 (2011-03-27 18:20:38).
To be clear, this used to work, but does NOT work anymore: form=SQLFORM.factory(Field('document', 'upload')) This works on the current version: form=SQLFORM.factory(Field('document', 'upload', uploadfolder=os.path.join(request.folder,'uploads'))) The problem is dal.py around line 4900. With SQLFORM.factory there is no db._adapter.folder and, therefore, no path to specify a default upload folder. It also seems that dal.py doesn't assume, nor have, access to the request? Is there a way to restore the default for SQLFORM.factory and maintain backward compatability? On Mar 2, 11:23 am, Lisandro <rostagnolisan...@gmail.com> wrote: > Hi Carlos. > Your solution worked perfectly. Though, I think this is a bug that has > to be fixed in next version. > > Regards, > Lisandro. > > On 23 feb, 19:28, Carlos <carlosgali...@gmail.com> wrote: > > > Hi Lisandro, > > > A workaround is to manually assign the following 'uploadfolder' value for > > the 'upload' type fields in the 'define_table' statements: > > > os.path.join(request.folder,'uploads') > > > I hope that helps. > > > Carlos > >