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

2000-08-29 Thread Dieter Maurer
Jean Jordaan writes: tdinput type="file" name="file" dtml-if file value="dtml-var "file"" /dtml-if /td Which returns:: ZPublisher.HTTPRequest.FileUpload instance at 131dc48 This is a perfect receipt where you should look for

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

2000-08-28 Thread Jean Jordaan
Hi Zopers I've got this:: tdinput 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

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

2000-08-28 Thread icottee
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