From 8790d8f9a2625432093c1e78ceb69da83fff9d3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 4 Sep 2009 16:44:01 +0200 Subject: [PATCH 1/1] Fixed upload. --- apps/explorer/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/views.py b/apps/explorer/views.py index d2ba7f79..cb6988ae 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -71,7 +71,7 @@ def file_upload(request, repo): def upload_action(): print 'Adding file: %s' % f.name - repo._add_file(f.name, f.read().decode('utf-8')) + repo._add_file(f.name, decoded) repo._commit( message="File %s uploaded from platform by %s" %\ (f.name, request.user.username), \ -- 2.20.1