From: Ɓukasz Rekucki Date: Fri, 4 Sep 2009 14:44:01 +0000 (+0200) Subject: Fixed upload. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/8790d8f9a2625432093c1e78ceb69da83fff9d3e Fixed upload. --- 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), \