[web2py] Re: manual file upload fails when storing file in database - field is NULL

2012-11-19 Thread Massimo Di Pierro
Please do. On Sunday, 18 November 2012 23:21:16 UTC-6, Cliff Kachinske wrote: Aha. I could not find the call to stream.read in the pdf manual. Manual uploads appears to be removed from the on-line manual. Is that intentional? If not I could write up a patch for the book in the next day

[web2py] Re: manual file upload fails when storing file in database - field is NULL

2012-11-18 Thread Cliff Kachinske
Aha. I could not find the call to stream.read in the pdf manual. Manual uploads appears to be removed from the on-line manual. Is that intentional? If not I could write up a patch for the book in the next day or so. By the way, the code allows uploads to be attached to any table in the

[web2py] Re: manual file upload fails when storing file in database - field is NULL

2012-11-16 Thread Massimo Di Pierro
Yes: att_id = db2.attachments.insert( attachment = db2.attachments.attachment.store(...), filename = fname, Description = r.attachments.attachment_brief_description, ) needs att_id = db2.attachments.insert(