form=SQLFORM.factory(Field('text','string'),
Field('upload','upload'))
When I submit a form I get a ticket stating
"you must specify a Field(...,uploadfolder=...)"
how come? In the manual it says:
These are the default values of a Field constructor:
Field(name, 'string', length=None, default=None,
required=False, requires='<default>',
ondelete='CASCADE', notnull=False, unique=False,
uploadfield=True, widget=None, label=None, comment=None,
writable=True, readable=True, update=None, authorize=None,
autodelete=False, represent=None, compute=None,
uploadfolder=os.path.join(request.folder,'uploads'),
uploadseparate=None)
I understand that if I don�t give a uploadfolder it uses a default value
of "os.path.join(request.folder,'uploads')"
Kenneth
I惴 trying to find out how form.accepts handles the uploading of files (for my mail gateway) and made a form
form=SQLFORM.factory(Field('text','string'),
Field('upload','upload'))
When I submit a form I get a ticket stating
"you must specify a Field(...,uploadfolder=...)"
how come? In the manual it says:
These are the default values of a Field constructor:
Field(name, 'string', length=None, default=None,
required=False, requires='<default>',
ondelete='CASCADE', notnull=False, unique=False,
uploadfield=True, widget=None, label=None, comment=None,
writable=True, readable=True, update=None, authorize=None,
autodelete=False, represent=None, compute=None,
uploadfolder=os.path.join(request.folder,'uploads'),
uploadseparate=None)
I understand that if I don愒 give a uploadfolder it uses a default value of "os.path.join(request.folder,'uploads')"
Kenneth
Kenneth