#2070: [patch] Large streaming uploads
----------------------------------------+-----------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  jacob         
     Status:  assigned                  |            Component:  Core framework
    Version:                            |           Resolution:                
   Keywords:  streaming, upload, large  |                Stage:  Accepted      
  Has_patch:  1                         |           Needs_docs:  1             
Needs_tests:  0                         |   Needs_better_patch:  1             
----------------------------------------+-----------------------------------
Comment (by Joakim Sernbrant <[EMAIL PROTECTED]>):

 Streaming file uploads, take #3
 
 I would really like to see something like this committed to
 trunk. However I think the previous patches has been too complicated
 and tried to do too much. Lack of documentation and tests has probably
 been a factor as well.
 
 I have rewritten the file upload to make it simpler and added some
 documentation and tests.
 
 * Simplified parsing by using a specialized RFC 2388 parser. The
 previous patches used different RFC 2822 parsers which were not suited
 for the task. The new parser is very efficient both cpu and memory
 wise. It uses mx.TextTools for boudary searches if available.
 
 * Removed AJAX code and progress meter. While I think it is a good
 thing I think it hinders the commitment of this patch. We should open
 a new ticket for a progress meter in the Admin interface. The
 X-Progress-ID header is still supported and a pickled progress file is
 written if supplied.
 
 * Added error handling.
 
 * Added Documentation.
 
 * Added tests.
 
 Tested with mod_python and lighttpd.
 
 You need to specify the FILE_UPLOAD_DIR setting to enable streaming (read
 forms doc).
 
 Patch attached (4459-streaming-file-upload.diff)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2070#comment:96>
Django Code <http://code.djangoproject.com/>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to