Hello,

Chapter 6 explains manual upoloads.

>>> db.define_table('myfile',Field('image','upload'))
>>> stream = open(filename,'rb')
>>> db.myfile.insert(image=db.myfile.image.store(stream,filename))
That works fine when the table is empty.

But how to upload an image file in order to update a specific row (ie.
when the other fields of the row are already  filled in the db) ?

Any help greatly appreciated
Thanks in advance

Dominique

Reply via email to