[Zope] filename property of variable

Thomas B. Passin tpassin@mitretek.org
Mon, 9 Jul 2001 12:20:53 -0400


Can you have other form variables besides the upload boxes?  Can there be
more than one on a page with the same name?

Tom P

[Laurie Nason]
> I have a page of multiple upload file boxes - the name of each one is
> generated on the fly so I don't know what the name will be when I get to
the
> dtml method to upload the images. I also don't know how many of them will
> actually have an image to upload. Hence, after much trawling through
> previous posts I found the following code to check to see if the user has
> actually selected a file to upload:
>
>      <dtml-if "newimage.filename">
>
> How do I use this with 'sequence-item'?
>
> I have tried:
>
>      <dtml-if "_['sequence-item'].filename">
>
> Any ideas?
>