I'm looking for a listing of errata for the web2py book but I don't
see one.  I looked in all the usual suspect areas -- AlterEgo, here,
the website, etc.

My issue is the section on using form_factory to generate a form for
uploading a file that I do not want to store in the database directly,
but which will be processed into database records (e.g. a CSV file).

The book covers this explicitly in section 7.3 on page 177, but the
example seems missing a few details.  For one thing, it does not
create an SQLField of type "upload" at all -- only two text fields.

When I try to create a form using the form_factory with only an upload
field, it seems to make the form all right, but submitting it does not
trigger the form.accepts() block in the controller.  I can see the
request.var.field_name set, but it is a FieldStorage object and I'm
not sure what to do with it!

This is the kind of detail I'd like to see added to the wiki.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to