Ivan Sagalaev wrote: >Looks like I was wrong. > And again :-(
> It appears that cgi.FieldStorage stores content >in temp files only when uploaded parts have Content-length set. But >browser doesn't set it and FieldStorage reads data with readline() and >stores it in memory anyway. > > It does uses readline() when length is unknown but stores it in memory only until length of the content doesn't exceed 1000 bytes (hard-coded). Then it creates temp file and dumps data there. >So all these disk vs. memory assumptions are irrelevant :-). Now I think >if it at all makes sense to deal with temp files rather than just switch >Django mime parser to FieldStorage instead of email.Message... > > Then it's not that much irrelevant :-). I'll make a setting for chosing type of a storage but not for chunk size. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---