[Zope] get full pathname file from form
J Cameron Cooper
jccooper at jcameroncooper.com
Tue Aug 19 21:14:10 EDT 2003
>This doesn't work for me. When I want to get the filesize of a large file
>(10 MB or more) I takes a long time to get the result.
>Therefore I want to use os.path.getsize.
>
>
>
>>>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 ?
>>>
>>>
You can't, unless:
1) you stick it on a filesystem (as a temporary file)
2) or somehow convince Zope to give you a handle to a temporary file it
writes on upload, if it does. This probably means mucking about in the core.
--jcc
More information about the Zope
mailing list