[Zope] get full pathname file from form

Michael Bleijerveld michael at bleijerveld.nl
Tue Aug 19 17:44:31 EDT 2003


Hi all,

I want to upload a file with this form.

<FORM ACTION="upload_file" METHOD="POST" ENCTYPE="multipart/form-data">

<INPUT TYPE="FILE" NAME="FILE" > <INPUT TYPE="SUBMIT" VALUE="Upload"
NAME="ACTION" >

</FORM>

To check the size with os.path.getsize(file) I need the filename with the
whole path.

How can I get this from the form variables ?

Regards.

Michael





More information about the Zope mailing list