Hi,

I'm using webpy-0.31 and when I try to upload a JPG file, I get this
error (same file upload worked fine with webpy-0.2x).

Traceback (most recent call last):
  File "packages/web/application.py", line 211, in process
    return self.handle()
  File "packages/web/application.py", line 201, in handle
    return self._delegate(fn, self.fvars, args)
  File "packages/web/application.py", line 385, in _delegate
    return handle_class(cls)
  File "packages/web/application.py", line 360, in handle_class
    return tocall(*args)
  File "newsletter.py", line 917, in POST
    h.input(web.input())
  File "packages/web/webapi.py", line 222, in input
    return storify(out, *requireds, **defaults)
  File "packages/web/utils.py", line 141, in storify
    value = getvalue(value)
  File "packages/web/utils.py", line 128, in getvalue
    return unicodify(x.value)
  File "packages/web/utils.py", line 123, in unicodify
    if _unicode and isinstance(s, str): return safeunicode(s)
  File "packages/web/utils.py", line 231, in safeunicode
    return obj.decode(encoding)
  File "encodings/utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0:
unexpected code byte

The error is triggered by calling web.input().
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to