[Zope] How to get the path?

Sorin Marti mas@semafor.ch
Mon, 10 Mar 2003 08:30:08 +0100


Hi all,

I want to upload files to the filesystem on my server (not into zope's 
Data.fs)

With <input type="file" name="file"> I get the filename...right?

But If I want to copy it with an external method like this:

copy = os.system('cp %s /tmp' %file.filename)

it doesent work because file.filename is only the file but not the 
path... (for example test.pdf)

How do I get the path?