[Zope] forward FileUpload objects through methods

Phillip Hutchings sitharus at gmail.com
Sun Dec 5 18:55:47 EST 2004


> Forget the previous description, the problem seems to be somewhere
> else. I have a form that uses enctype="multipart/form-data" and
> executes functionA(self, REQUEST). When I add "return REQUEST" into
> this function I see that the file-element is not a FileUpload Object,
> but a simple string??
> 
> I found the cause: method="POST" was not set. Question is: Is that OK,
> I mean can FileUpload only be use with POST not with GET?

Yes, files can only be uploaded with POST, it's due to how HTTP works.
-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com


More information about the Zope mailing list