[Zope] ExtFile and ftp access

Markus Koelle mkoelle@gmx.de
Tue, 26 Feb 2002 21:36:11 -0000


On 26 Feb 2002 at 20:51, Dieter Maurer wrote:

> Markus Koelle writes:
>  > Can you tell me, how I can patch the extFile-product to allow ftp and webdav 
>  > transport. FTP-uploaded Images should become extImages and files should become 
>  > extfile-objects. Please can you give me detailed information about PUT_factory.py.
> You read the HowTo on Zope.org?
a)
I've tried ExtFile-1.1.3.patch and the example external method on
http://dev.zope.org/Members/shh/Patches/
but it didn't work. FTP-Client shoes "426 Error creating files" alltough I'm a manager 
and have got all permissions.

Here my external method code:

    def PUT_factory(self, name, typ, body):
       #   Return DTMLDoc/Image/File, based on sniffing.
       print "Factory called"
       from Products.ExtFile.ExtFile import ExtFile
       from Products.ExtFile.ExtImage import ExtImage
       if typ[:6]=='image/':
           ob=ExtImage(name)
       else:
           ob=ExtFile(name)
       return ob

Any idea?

 
>  > Another problem with extFile-product:
>  > A 2,8 MB-File can uploaded via http with no probs, the upload of bigger files (6 MB, 14 
>  > MB) stops with time-out. Any idea?
> Uploading large objects takes some time.
> I fear, you need to find the process that times out (your
> browser, an FCGI/PCGI gateway, Apache, ...) and increase the
> timeout.

May be a squid-proxy time-out. 


> Dieter

Thank you
Markus