[Zope] determining if there is a file to be uploaded

Ingo Assenmacher ingo.assenmacher@post.rwth-aachen.de
Tue, 9 May 2000 01:15:21 +0200


Hi!

I have a form with a file-input tag. Now, how do I determine if there is actually a file upload done?
(I tried to read the file size with
<dtml-if "_.len(file.read())">
 there is data
<dtml-else>
 there is no data
</dtml-if>

But this does not work (always 0).

Ok, how is this to be done?

Regards, Ingo.