[Zope] get full pathname file from form

Dennis Allison allison at sumeru.stanford.EDU
Tue Aug 19 10:11:00 EDT 2003


Michael,
This returns a File_Upload object. See

                lib/python/ZPublisher/HTTPRequest.py

to see what's under the sheets.


On Tue, 19 Aug 2003, Michael Bleijerveld wrote:

> 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
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 




More information about the Zope mailing list