{"action":"created","issue":{"url":"https://api.github.com/repos/adi-/django-markdownx/issues/6","labels_url":"https://api.github.com/repos/adi-/django-markdownx/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/adi-/django-markdownx/issues/6/comments","events_url":"https://api.github.com/repos/adi-/django-markdownx/issues/6/events","html_url":"https://github.com/adi-/django-markdownx/issues/6","id":111989370,"number":6,"title":"AttributeError when uploading image with python3","user":{"login":"eduard-sukharev","id":3235378,"avatar_url":"https://avatars.githubusercontent.com/u/3235378?v=3","gravatar_id":"","url":"https://api.github.com/users/eduard-sukharev","html_url":"https://github.com/eduard-sukharev","followers_url":"https://api.github.com/users/eduard-sukharev/followers","following_url":"https://api.github.com/users/eduard-sukharev/following{/other_user}","gists_url":"https://api.github.com/users/eduard-sukharev/gists{/gist_id}","starred_url":"https://api.github.com/users/eduard-sukharev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduard-sukharev/subscriptions","organizations_url":"https://api.github.com/users/eduard-sukharev/orgs","repos_url":"https://api.github.com/users/eduard-sukharev/repos","events_url":"https://api.github.com/users/eduard-sukharev/events{/privacy}","received_events_url":"https://api.github.com/users/eduard-sukharev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-17T23:00:31Z","updated_at":"2015-10-18T10:53:23Z","closed_at":null,"body":"Installed markdownx version is 1.2. Python version is 3.4.0, project is in virtualenv.\r\n\r\ndrag'n'drop image from local folder shows 500 error on request to server in developer console:\r\n\r\n```\r\nTypeError at /markdownx/upload/\r\nstring argument expected, got 'bytes'\r\n\r\nRequest Method: POST\r\nRequest URL: http://localhost:8000/markdownx/upload/\r\nDjango Version: 1.8.5\r\nPython Executable: /home/kraplax/noslack/bin/python3\r\nPython Version: 3.4.0\r\nPython Path: ['/home/kraplax/noslack/src', '/home/kraplax/noslack/lib/python3.4', '/home/kraplax/noslack/lib/python3.4/plat-i386-linux-gnu', '/home/kraplax/noslack/lib/python3.4/lib-dynload', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-i386-linux-gnu', '/home/kraplax/noslack/lib/python3.4/site-packages']\r\nServer time: Sat, 17 Oct 2015 22:59:28 +0000\r\nInstalled Applications:\r\n('django.contrib.admin',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'time_sections',\r\n 'account',\r\n 'markdownx',\r\n 'ublog',\r\n 'pinax_theme_bootstrap',\r\n 'bootstrapform')\r\nInstalled Middleware:\r\n('django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n 'django.middleware.security.SecurityMiddleware',\r\n 'account.middleware.LocaleMiddleware',\r\n 'account.middleware.TimezoneMiddleware')\r\n\r\nTraceback:\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/django/core/handlers/base.py\" in get_response\r\n  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/django/views/generic/base.py\" in view\r\n  71.             return self.dispatch(request, *args, **kwargs)\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/django/views/generic/base.py\" in dispatch\r\n  89.         return handler(request, *args, **kwargs)\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/django/views/generic/edit.py\" in post\r\n  215.             return self.form_valid(form)\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/markdownx/views.py\" in form_valid\r\n  30.         image_path = form.save()\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/markdownx/forms.py\" in save\r\n  28.         img.save(thumb_io,  self.files['image'].content_type.split('/')[-1].upper())\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/PIL/Image.py\" in save\r\n  1665.             save_handler(self, fp, filename)\r\nFile \"/home/kraplax/noslack/lib/python3.4/site-packages/PIL/PngImagePlugin.py\" in _save\r\n  690.     fp.write(_MAGIC)\r\n\r\nException Type: TypeError at /markdownx/upload/\r\nException Value: string argument expected, got 'bytes'\r\nRequest information:\r\nGET: No GET data\r\n```"},"comment":{"url":"https://api.github.com/repos/adi-/django-markdownx/issues/comments/149001131","html_url":"https://github.com/adi-/django-markdownx/issues/6#issuecomment-149001131","issue_url":"https://api.github.com/repos/adi-/django-markdownx/issues/6","id":149001131,"user":{"login":"eduard-sukharev","id":3235378,"avatar_url":"https://avatars.githubusercontent.com/u/3235378?v=3","gravatar_id":"","url":"https://api.github.com/users/eduard-sukharev","html_url":"https://github.com/eduard-sukharev","followers_url":"https://api.github.com/users/eduard-sukharev/followers","following_url":"https://api.github.com/users/eduard-sukharev/following{/other_user}","gists_url":"https://api.github.com/users/eduard-sukharev/gists{/gist_id}","starred_url":"https://api.github.com/users/eduard-sukharev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduard-sukharev/subscriptions","organizations_url":"https://api.github.com/users/eduard-sukharev/orgs","repos_url":"https://api.github.com/users/eduard-sukharev/repos","events_url":"https://api.github.com/users/eduard-sukharev/events{/privacy}","received_events_url":"https://api.github.com/users/eduard-sukharev/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T10:53:23Z","updated_at":"2015-10-18T10:53:23Z","body":"i've tried fixing it that way, but it then chokes at line 31 and says that `thumb_io` has no member `len`"}}