#2070: Large streaming uploads
---------------------------------------------------------------+------------
Reporter: [EMAIL PROTECTED] | Owner:
axiak
Status: new |
Component: Core framework
Version: SVN |
Resolution:
Keywords: streaming, upload, large, sprintsept14, feature |
Stage: Accepted
Has_patch: 1 |
Needs_docs: 0
Needs_tests: 1 |
Needs_better_patch: 0
---------------------------------------------------------------+------------
Comment (by jmv):
I've installed the latest trunk, applied this patch
(6603_all_tests_pass_uploadedfile_wrapper_fixed.diff) and discovered two
problems. Under mod_python 3.3.1 uploading 12Mb image results in apache
consuming all available memory and dying. This is probably a mod_python
error as it doesn't occur when using development server or mod_wsgi.
When I'm trying to upload 600Mb file under mod_wsgi, though, I get another
problem:
{{{
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in
_real_get_response
81. response = callback(request, *callback_args, **callback_kwargs)
File "/var/lib/python-
support/python2.5/django/contrib/admin/views/decorators.py" in _checklogin
55. return view_func(request, *args, **kwargs)
File "/var/lib/python-support/python2.5/django/views/decorators/cache.py"
in _wrapped_view_func
39. response = view_func(request, *args, **kwargs)
File "/var/lib/python-
support/python2.5/django/contrib/admin/views/main.py" in change_stage
332. errors = manipulator.get_validation_errors(new_data)
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
get_validation_errors
61. errors.update(field.get_validation_errors(new_data))
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
get_validation_errors
378. self.run_validator(new_data, validator)
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
run_validator
368. validator(new_data.get(self.field_name, ''), new_data)
File "/var/lib/python-support/python2.5/django/oldforms/__init__.py" in
isValidImage
713. validators.isValidImage(field_data, all_data)
File "/var/lib/python-support/python2.5/django/core/validators.py" in
isValidImage
180. content = field_data['content']
KeyError at /admin/account/pokerroom/5/
'content'
}}}
Seems that patch is already outdated. Where can I get a newer
version?[[BR]]
Eugene
--
Ticket URL: <http://code.djangoproject.com/ticket/2070#comment:200>
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
-~----------~----~----~----~------~----~------~--~---