Hi,

I'm using patch 2070 for large streaming uploads in a relatively simple
webapp, but I am getting reproducable exceptions whenever I upload m3u
text files (doesn't seem to happen with any other kinds of files).

I am running django at rev 3769 plus the 2070 patch from a file named:
3581-streaming_uploads_and_uploadprogress_middleware_x_progress_id.diff

It is running under apache-2.0.54 with modpython-3.2.10, compiled
against python 2.4.1.

Relevant parts of my apache config:

<Location "/file">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE file.settings
    PythonDebug On
    PythonPath "['/home/jacob/dp1'] + sys.path"
</Location>

Relevant parts of settings.py:

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'django.middleware.upload.UploadStateMiddleware',
    'django.middleware.upload.StreamingUploadMiddleware',
)

STREAMING_UPLOADS=True




This is the exception I get:

Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/base.py"
in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File "/home/misjxm/dp1/file/app/views.py" in createmessage
  275. if request.POST:
File
"/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py"
in _get_post
  51. self._load_post_and_files()
File
"/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py"
in _load_post_and_files
  32. self._post, self._files = http.parse_file_upload(self)
File
"/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/http/__init__.py"
in parse_file_upload
  81. return req.parse_file_upload(req)
File
"/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/middleware/upload.py"
in parse_streaming_file_upload
  104. FILES.appendlist(key, FileDict({
File "/usr/lib/python2.4/cgi.py" in __getattr__
  540. raise AttributeError, name

  AttributeError at /file/compose/
  tmp_name


If I upload m3u playlist files I consistantly get this exception.  If I
upload any other kinds of files (executables, ISOs, Word docs, text
files, etc.) things work beautifully.

Am I missing something?

Thanks!

Jacob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to