[Zope] Showing the name of a file-type form variable

icottee@bluefountain.com icottee@bluefountain.com
Mon, 28 Aug 2000 21:49:58 +0100


Hi

file.filename should be what you are after. e.g. In my latest project I set a
variable myFileName to be the name of the file uploaded using

  <dtml-var "REQUEST.set('myFileName',file.filename)">

where file is the name of my file upload control in my form.

Ian

Original Message ---
Hi Zopers

I've got this::

 <td><input type="file"
             name="file"
             <dtml-if file> value="<dtml-var "file">" </dtml-if>
             ></td>

Which returns::

 <ZPublisher.HTTPRequest.FileUpload instance at 131dc48>

in the input box. I'd really rather have the filename. How does
one do that?