Fixed upload.
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 4 Sep 2009 14:44:01 +0000 (16:44 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 4 Sep 2009 14:44:01 +0000 (16:44 +0200)
apps/explorer/views.py

index d2ba7f7..cb6988a 100644 (file)
@@ -71,7 +71,7 @@ def file_upload(request, repo):
 
                 def upload_action():
                     print 'Adding file: %s' % f.name
 
                 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), \
                     repo._commit(
                         message="File %s uploaded from platform by %s" %\
                             (f.name, request.user.username), \