[Zope] Retaining file name in <input type=file...

Chris Withers chrisw@nipltd.com
Sun, 16 Sep 2001 17:52:32 +0100


> This is the present DTML...
> <input type="file" name="file" size="40"
>     value="<dtml-var expr="REQUEST.get('file',')" html_quote>"
>
> ...and in the Python function...
> REQUEST.set('file', REQUEST.file)
> ...and I have also tried...
> REQUEST.set('file.filename', REQUEST.file.filename)
> ...neither of which works.
>
> Any suggestions on how to preserve the file name would be most welcome.

Urm, I think you're screwed since I'm pretty sure browsers ignore any value
set in a file tag :-(

Maybe some JavaScript could hack it?

cheers,

Chris