#4165: Upload Progress Middleware and Integration into the Admin
---------------------------------------------+------------------------------
   Reporter:  Michael Axiak <[EMAIL PROTECTED]>  |                Owner:  
adrian                
     Status:  new                            |            Component:  Admin 
interface       
    Version:  SVN                            |           Resolution:            
            
   Keywords:  upload, progress, ajax         |                Stage:  Design 
decision needed
  Has_patch:  1                              |           Needs_docs:  1         
            
Needs_tests:  1                              |   Needs_better_patch:  1         
            
---------------------------------------------+------------------------------
Changes (by Michael Axiak <[EMAIL PROTECTED]>):

  * keywords:  upload, progress => upload, progress, ajax

Comment:

 Thank you previous poster (anonymous), adding an incremental (why random?)
 number after the URI was one of the several changes I've made in order to
 get this to work in IE (5.5,6, and 7).
 
 Thanks to all who have been testing, this new patch should be a great
 improvement -- especially for those using IE. However, there are a few
 things that need to be changed.
 
 Since #2070 has now been stripped of its default !FileProgressDescriptor,
 you need to add some middleware/add models to get this to work.
 
 '''INSTALLATION'''
 
 1. Add #2070 to your source tree
 
 2. Add the latest patch to your source tree.
 
 3. Setup your middleware/models to track file progress.
 
 4. Set {{{FILE_UPLOAD_DIR}}} to a writable folder in your
 {{{settings.py}}} file.
 
 For (3), there are two options that come in the patch (as uploadprogress
 contrib):
 
  * !FileProgressStore -- uses the cache framework for quick ajax (will NOT
 work if your cache framework doesn't)
  * FileProgressDB    -- uses Database models
 
 Depending on what you choose, continue below.
 
 '''!FileProgressStore'''
 
 To enable this, add
 {{{'django.contrib.uploadprogress.middleware.FileProgressStore'}}} to your
 {{{MIDDLEWARE_CLASSES}}}.
 
 '''FileProgressDB'''
 
 To enable this:
 
  * Add {{{'django.contrib.uploadprogress.middleware.FileProgressStore'}}}
 to your {{{MIDDLEWARE_CLASSES}}}.
  * Add {{{'django.contrib.uploadprogress'}}} to your {{{INSTALLED_APPS}}}.
  * run a {{{./manage.py syncdb}}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4165#comment:14>
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