http://web2py.com/books/default/chapter/29/6#Manual-uploads
On Monday, July 9, 2012 10:15:27 AM UTC-4, Athelionas wrote:
>
> What is the proper way of uploading a file without SQLFORM into the
> following database table?
>
> db.define_table('files',
> Field('original_filename', 'string'),
> Field('file', 'upload', uploadfield='file_data'),
> Field('file_data', 'blob'))
>
> A simple insert won't help here so I'm sure there's some kind of trick to
> it which I'm unable to figure out on my own.
>
> Any help is highly appreciated!
>