google-code-export / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

MultiValueDictKeyError on photo upload #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Environment:

Request Method: POST
Request URL: http://localhost/photos/upload/
Django Version: 1.0-final-SVN-unknown
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.humanize',
 'django.contrib.markup',
 'notification',
 'emailconfirmation',
 'django_extensions',
 'robots',
 'dbtemplates',
 'friends',
 'mailer',
 'messages',
 'announcements',
 'django_openidconsumer',
 'django_openidauth',
 'oembed',
 'crashlog',
 'pagination',
 'gravatar',
 'threadedcomments',
 'wiki',
 'swaps',
 'timezones',
 'feedutil',
 'app_plugins',
 'voting',
 'tagging',
 'bookmarks',
 'blog',
 'ajax_validation',
 'photologue',
 'arcade',
 'games',
 'locations',
 'analytics',
 'profiles',
 'zwitschern',
 'lifestream',
 'account',
 'tribes',
 'projects',
 'core',
 'things',
 'photos',
 'tag_app',
 'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django_openidconsumer.middleware.OpenIDMiddleware',
 'profiles.middleware.LocaleMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'djangologging.middleware.LoggingMiddleware',
 'pagination.middleware.PaginationMiddleware',
 'things.middleware.SortOrderMiddleware',
 'crashlog.CrashLogMiddleware',
 'django.middleware.transaction.TransactionMiddleware')

Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in 
get_response
  86.                 response = callback(request, *callback_args, 
**callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" 
in __call__
  67.             return self.view_func(request, *args, **kwargs)
File "/django/pinax/pinax/local_apps/photos/views.py" in upload
  24.         if request.POST["action"] == "upload":
File "/usr/lib/python2.5/site-packages/django/utils/datastructures.py" in 
__getitem__
  203.             raise MultiValueDictKeyError, "Key %r not found in %r" 
% (key, self)

Exception Type: MultiValueDictKeyError at /photos/upload/
Exception Value: "Key 'action' not found in <QueryDict: {}>"

Original issue reported on code.google.com by s3x...@gmail.com on 12 Sep 2008 at 12:24

GoogleCodeExporter commented 9 years ago
Can you explain the steps that got you this error?  Including photo type, size, 
etc?

Original comment by gregoryj...@gmail.com on 18 Oct 2008 at 10:08

GoogleCodeExporter commented 9 years ago
Changed to request.POST.get("action") == "upload":

Original comment by gregoryj...@gmail.com on 31 Oct 2008 at 12:26