Is there an oen issue here? I do no see a problem.
On 11 tammi, 08:20, Richard Vézina <ml.richard.vez...@gmail.com> wrote: > You need a upload field to store the path and a field to store the name of > the file... The book is not clear I think about upload particularly about > blob storage... > > My model : > > Field('chroma','upload',uploadfield='chroma_blob'), > Field('chroma_blob','blob'), > > You need both doen't matter if you use blob. > > Hope this help! > > Richard > > 2011/1/11 Kenneth Lundström <kenneth.t.lundst...@gmail.com> > > > > > > > > > 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