[Zope3-Users] Will zope server crash when uploading
huge filesinthe same time?
Jonathan
dev101 at magma.ca
Tue Feb 6 16:01:02 EST 2007
----- Original Message -----
From: "Maciej Wisniowski" <maciej.wisniowski at coig.katowice.pl>
To: "Jonathan" <dev101 at magma.ca>
Cc: "Paul Winkler" <pw_lists at slinkp.com>; <zope3-users at zope.org>
Sent: Tuesday, February 06, 2007 3:22 PM
Subject: Re: [Zope3-Users] Will zope server crash when uploading huge
filesinthe same time?
>> yes, but you don't get the HTTP headers (in a zope application) until
>> after the file upload is completed. If you use Apache's
>> LimitRequestBody directive you can limit file sizes uploaded by a user,
>> but if the user exceeds this limit they get an apache error response (as
>> opposed to something a little more user-friendly issued by the zope
>> application).
> I've written about this in my answer to previous Alex Cheng post.
> There is tramline (http://www.infrae.com/products/tramline) product
> from infrae. It deals with uploading large files via apache.
> They say something like:
> to handle upload:
> * file contents will contain the unique file id.
> * send out 'tramline_ok' header if file is accepted. Failure to send
> out this header will cause the file to be rejected.
>
> Interestin line for you may be: "'tramline_ok' header should be sent if
> file is accepted" because seems that you have some kind of control
> before upload. But I don't know how it works. Maybe it does what you're
> looking for.
I had a quick look at tramline, an interesting apache add-on, but it still
uploads the entire file before asking the application server whether it
wants to accept the file or not. If the file is accepted it is moved from
the 'upload' directory to the final 'repository' directory (where the
application can access it). If the file is not accepted it is deleted from
the upload directory.
Jonathan
More information about the Zope3-users
mailing list