what is the difference between the enctypes
Good morning, By experience I learned that I have to use an enctype of "multipart/form-data" when sending a file. "Normal" forms use an enctype of "x-www-form-urlencoded" (which is the default) Now my question: is there a reason NOT to use always multipart/form-data? In http://www.ietf.org/rfc/rfc2388.txt I did read that the effect of using the same field-name more than once is not defined. Would that hinder Zope to create a records out of a set of actually named fields?? Robert
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.
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.
participants (2)
-
John Ziniti -
Robert Rottermann