[Zope] Getting the filename from a file upload

Dieter Maurer dieter at handshake.de
Mon Aug 18 21:04:40 EDT 2003


hpinson at indepthl.com wrote at 2003-8-16 13:10 -0600:
 > ...
When you have a "FileUpload" instance "file", then
"file.filename" gives you its filename.

Note, however, that some versions of IE have a bug and
return the full path name while most other browser return
only the filename (without directory) (as it should be for
security reasons).


Dieter



More information about the Zope mailing list