[Zope] Obtaining just the filename for multiple file fields in an add form form

Dieter Maurer dieter@handshake.de
Sun, 5 Nov 2000 19:02:40 +0100 (CET)


Darin Lee writes:
 > ... accessing the name of an uploaded file ...
This is an FAQ (--> searchable archive).

   Uploaded files are "ZPublisher.HTTPRequest.FileUpload" objects.
   
   From their source documentation:

    File upload objects are used to represent file-uploaded data.

    File upload objects can be used just like files.

    In addition, they have a 'headers' attribute that is a dictionary
    containing the file-upload headers, and a 'filename' attribute
    containing the name of the uploaded file.


Dieter