Re: [web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Jonathan Lundell
On Dec 22, 2010, at 4:15 PM, mdipierro wrote: > > The problem is thet you have an upload field is a form that is not > connected to a database (because you are using a factory). web2py does > not know what to do with the file. You need to specify the > uploadfolder. It might not hurt to check thi

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Charis
it worked. Thank you very much. On Dec 23, 12:15 am, mdipierro wrote: > The problem is thet you have an upload field is a form that is not > connected to a database (because you are using a factory). web2py does > not know what to do with the file. You need to specify the > uploadfolder. > > uf=o

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread mdipierro
The problem is thet you have an upload field is a form that is not connected to a database (because you are using a factory). web2py does not know what to do with the file. You need to specify the uploadfolder. uf=os.path.join(request.folder,'uploads') form = SQLFORM.factory(Field('email','string'

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Charis
I define the db using: db = DAL('sqlite://db.db') db.define_table('database', SQLField('email','string'), SQLField('data','upload') ) I create a form using form = SQLFORM.factory(db.database.email,db.database.data) The form appears correctly but

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-19 Thread mdipierro
I cannot reproduce the problem. What db? On Dec 19, 6:39 pm, Charis wrote: > I have the following error message when i try to upload a file in > web2py 1.90.4. This feature was working fine for me with the previews > versions. > > Traceback (most recent call last): >   File "/home/charis/Desktop/