[Zope] what is the difference between the enctypes

Robert Rottermann robert@redcor.ch
Tue, 27 Nov 2001 09:26:13 +0100


John,
thank you for your insight.
The reason I was asking is the fact that throuougth CMF screens asking the
user for "normal" input and screens asking for a filename to download are
separated.
Since I feel this is unnatural from a users point of view I was wondering
what the reason couls be.
So the forms I want to combine with the file download field only have some
ten more fields.

Robert
----- Original Message -----
From: "John Ziniti" <jziniti@speakeasy.org>
To: "Robert Rottermann" <robert@redcor.ch>
Cc: <zope@zope.org>
Sent: Monday, November 26, 2001 4:39 PM
Subject: Re: [Zope] what is the difference between the enctypes


> > Now my question:
> > is there a reason NOT to use always multipart/form-data?
>
>
> Robert,
>
> The only "interesting" effect I have seen from using
> mulitpart/form-data, is that the Python code which parses
> the form-data opens a temporary file for each <input>
> element in the form.  This can cause strange effects if
> the number of form elements is larger than the number
> of file descriptors allowed by the OS.
>
> Some think that this Python behavior is a Bad Thing.  But,
> it bit me in the ass a few times, so I avoid mulitpart
> unless I know I am uploading, and even then I keep my
> forms small.
>
>