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
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
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'
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
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/
5 matches
Mail list logo