[Zope] API HTTPRequest

Andrew Veitch andrew at logicalprogression.net
Mon Mar 8 11:41:21 EST 2004


> <form action="attach_action" method="post"
> enctype="multipart/form-data">
> <p>Name: <input type="text" name="name"></p>
> <p>File: <input type="file" name="file"></p>
> <input type="submit" name="ok" value="ok">
> </form>
> 
> and in python script i returned "file" and the result is:
> 
> <ZPublisher.HTTPRequest.FileUpload instance at 0x4199834c>

The filename will be in file.filename and you can get the data with
file.read()

> can someone help me on this issue? And where can i found a complete and
> better API reference than the one in the Zope Book. It's very
> frustrating for a newbie losing time with this kind of things.

You need to read the mail lists, Zope's source code and reading through
people's products. It's a pain but worth it in the end.

A




More information about the Zope mailing list