#2070: [patch] Large streaming uploads
--------------------------------------+-------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  jacob   
     Type:  enhancement               |       Status:  assigned
 Priority:  normal                    |    Milestone:          
Component:  Core framework            |      Version:          
 Severity:  normal                    |   Resolution:          
 Keywords:  timezone, time zone, UTC  |  
--------------------------------------+-------------------------------------
Comment (by [530]):

 * If that bit is taken out memory usage soars because most browsers do not
 use newlines when sending files so it actually reads to EOF. Is it
 possible to override self.fp.readline() to call self.fp.readline(64000)?
 Then most of this code would be removed.
 
  * The upload status is a bit tricy, I need to override FieldStorage to
 store the status. But since FieldStorage is not a extended class of object
 there is no super(FieldStorage, self).read_lines_to_outerboundary()
 causing repetition of code.
 
  * Don't know how multiple uploads can be solved since it would require
 multiple id's, maybe use sessions instead if possible. Never experienced
 the emptiying if the temp file. Does this happen with both mod_python and
 wsgi?
 
  * About setting os.environ, the mod_python-handler does not set it, but
 wsgi does, need to fix that one instead of messing with threadlocal , this
 may be why the file is emptied if it only happens with wsgi.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2070>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to