#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 toddobryan):

 I just provided a patch which steals liberally from Oyvind, but decouples
 the progress monitor from the rest of the file upload behavior.
 
 In a nutshell, if you don't want to read uploads into memory, you set
 request.save_file_class to the class of the kind of file-like object you'd
 like uploads routed to. A sample middleware class is provided which uses a
 temp file.
 
 I haven't looked at Oyvind's latest code, but my guess is that we could
 easily move the upload monitor from the guts of Django by providing a
 file-like object class that keeps track of how much stuff it has received
 from the POST data stream.
 
 Comments welcome. (But be nice; it's my first patch.)

-- 
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