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?



_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to