have gotten the following reqeust header, from a header monitor. i also
get an error prointed which i will paste below. also i've pasted the
view here, it doesn't seem like the request gets to the view. i have
tried hitting the view directly in the browser and that works fine.

--- view ----

def do_upload_video(request):
    print request.raw_data
    print request.META
    return render_to_response('user/upload3.html')


---- request header -----

POST /upload/2/do/ HTTP/1.1
Accept: text/*
Content-Type: multipart/form-data;
boundary=----------cH2ei4cH2cH2cH2ei4KM7gL6Ef1Ij5
User-Agent: Shockwave Flash
Host: localhost:8000
Content-Length: 99446
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: sessionid=cda865cb732e46761b79a78f7ad0a87c

------------cH2ei4cH2cH2cH2ei4KM7gL6Ef1Ij5
Content-Disposition: form-data; name="Filename"

thumbs.JPG
------------cH2ei4cH2cH2cH2ei4KM7gL6Ef1Ij5
Content-Disposition: form-data; name="Filedata"; filename="thumbs.JPG"
Content-Type: application/octet-stream

ÿØÿà
.....
.....
.....
(¢€?ÿÙ
------------cH2ei4cH2cH2cH2ei4KM7gL6Ef1Ij5
Content-Disposition: form-data; name="Upload"
Submit Query
------------cH2ei4cH2cH2cH2ei4KM7gL6Ef1Ij5





---- error printed in console when request is run ----

Traceback (most recent call last):
  File "c:\python24\lib\site-packages\django\core\servers\basehttp.py",
line 272, in run
    self.result = application(self.environ, self.start_response)
  File "c:\python24\lib\site-packages\django\core\servers\basehttp.py",
line 615, in __call__
    return self.application(environ, start_response)
  File "c:\python24\lib\site-packages\django\core\handlers\wsgi.py",
line 146, in __call__
    response = self.get_response(request.path, request)
  File "c:\python24\lib\site-packages\django\core\handlers\base.py",
line 102, in get_response
    return self.get_technical_error_response(request)
  File "c:\python24\lib\site-packages\django\core\handlers\base.py",
line 135, in get_technical_error_response
    return debug.technical_500_response(request, *sys.exc_info())
  File "c:\python24\lib\site-packages\django\views\debug.py", line 133,
in technical_500_response
    return HttpResponseServerError(t.render(c), mimetype='text/html')
  File "C:\Python24\lib\site-packages\django\template\__init__.py",
line 155, in render
    return self.nodelist.render(context)
  File "C:\Python24\lib\site-packages\django\template\__init__.py",
line 688, in render
    bits.append(self.render_node(node, context))
  File "C:\Python24\lib\site-packages\django\template\__init__.py",
line 716, in render_node
    raise wrapped
TemplateSyntaxError: Caught an exception while rendering.

Original Traceback (most recent call last):
  File "C:\Python24\lib\site-packages\django\template\__init__.py",
line 706, in render_node
    result = node.render(context)
  File "C:\Python24\lib\site-packages\django\template\defaulttags.py",
line 189, in render
    value = bool_expr.resolve(context, True)
  File "C:\Python24\lib\site-packages\django\template\__init__.py",
line 548, in resolve
    obj = resolve_variable(self.var, context)
  File "C:\Python24\lib\site-packages\django\template\__init__.py",
line 657, in resolve_variable
    raise VariableDoesNotExist, "Failed lookup for key [%s] in %r" %
(bits[0], current) # missing attribute
  File "c:\python24\lib\site-packages\django\core\handlers\wsgi.py",
line 62, in __repr__
    return '<DjangoRequest\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s>' %
\
  File "c:\python24\lib\site-packages\django\core\handlers\wsgi.py",
line 97, in _get_post
    self._load_post_and_files()
  File "c:\python24\lib\site-packages\django\core\handlers\wsgi.py",
line 75, in _load_post_and_files
    self._post, self._files = http.parse_file_upload(header_dict,
self.raw_post_data)
  File "c:\python24\lib\site-packages\django\http\__init__.py", line
52, in parse_file_upload
    name_dict = parse_header(submessage['Content-Disposition'])[1]
  File "c:\python24\lib\cgi.py", line 331, in parse_header
    plist = map(lambda x: x.strip(), line.split(';'))
AttributeError: 'NoneType' object has no attribute 'split'

[07/Jul/2006 12:12:41] "POST /upload/2/do/ HTTP/1.1" 500 2880


--~--~---------~--~----~------------~-------~--~----~
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