20 Aug
2003
20 Aug
'03
1:14 a.m.
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