hello
my sqlform.factory below

trab_id=db.trabalhador.insert(**db.trabalhador._filter_fields(form.vars))

is not uploading a file

First i got error
SQLFORM.factory - RuntimeError: you must specify a
Field(...,uploadfolder=...)

so i added in my model

Field('apt_medica','upload',
uploadfolder=os.path.join(request.folder,'uploads'),label='Ficha de aptidão
médica'),

then the upload is done( i think! because no errors)

Strangely in app admin when i click in the file link i get another error

404 not found

the url is
http://127.0.0.1:8000/EMPRE2/appadmin/download/db/*no_table.*
apt_medica.b8e824a896390be6.737061333130322e747874.txt

what does it mean  *no_table *in the url?


Thank you

-- 



Reply via email to