Some of the information here may be outdated, please check the book instead

draft to be tested.

You can use with web2py. Just replace the Ruby/Rails code in the example with

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)!

© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.