[Zope] File url in a network

Passin, Tom tpassin at mitretek.org
Tue Oct 14 10:57:58 EDT 2003


[F. Troester]

> I need some help. I don'n know how to specify a file url in a network.
> For uploading and creating an object (within the Product 
> External File) I
> need
> 
> <dtml-call 
> "uploadCreate(target_filepath=target,upload_file=fileurl)" >
> 
> with the file_url as upload_file.
> 
> I get the error
> 
> [Errno 2] No such file or directory:
> \\192.168.1.172\C:\FH-Unterlagen\Vorlesungen\MT\KFZ-MT\Folien\
Temp\Titelblat
t.pdf 
when I use this function with the 
fileurl='\\192.168.1.172\C:\FH-Unterlagen\Vorlesungen\MT\KFZ-MT\Folien\T
emp\
Titelblatt.pdf'.

How can I specify the file in the network?

I would start by adding the scheme ("file:") to the url.  This is
essential.  If that does not do it, you may need some windows-specific
interface code (I seem to remember that localFS needs such code to
access network hosts).  I do not know any more than that, though.

Cheers,

Tom P



More information about the Zope mailing list