draft to be tested.
You can use http://blog.vixiom.com/2006/09/08/multiple-file-upload-with-flash-and-ruby-on-rails/ with web2py. Just replace the Ruby/Rails code in the example with
db.define_table('DataFile',SQLField('Filename'),SQLField('Filedata','upload'))
def index(): return SQLFORM(db.DataFile).accepts(request.vars,formname=None)
you will get exactly the same functionality as the above ruby code + definition of the table + built-in security (the ruby code in the article is vulnerable to directory traversal attacks)!