There's likely a bug in sqlhtml preventing images to be stored
correctly in db in case of using
SQLFORM(db.table) where db.tale has a field of type 'upload' and the
field is used to upload an image , this happens only when using
if form.accepts(request,vars, session, dbio=False):
    blahblahblah

and thus images are not correctly displayed in update forms
SQLFORM(....,upload=URL(r=request, c='default', f='download')

newfilename = field.store(source_file, original_filename)
                 self.vars['%s_newfilename' % fieldname] = \
                     fields[fieldname] = newfilename
+               self.vars['%s' % fieldname] = newfilename  --------->
added
                 if field.uploadfield and not field.uploadfield==True:
                     fields[field.uploadfield] = source_file.read()
                 continue



-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to