summary refs log tree commit diff
path: root/synapse/rest/media/v1/upload_resource.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-10-12 15:20:59 +0100
committerErik Johnston <erik@matrix.org>2017-10-12 15:20:59 +0100
commitbf4fb1fb400daad23702bc0b3231ec069d68e87e (patch)
treed5ec655d0abb781bfe968c3d1ba218f3b4922253 /synapse/rest/media/v1/upload_resource.py
parentlog when we get an exception handling replication updates (diff)
downloadsynapse-bf4fb1fb400daad23702bc0b3231ec069d68e87e.tar.xz
Basic implementation of backup media store
Diffstat (limited to 'synapse/rest/media/v1/upload_resource.py')
-rw-r--r--synapse/rest/media/v1/upload_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/upload_resource.py b/synapse/rest/media/v1/upload_resource.py
index 4ab33f73bf..f6f498cdc5 100644
--- a/synapse/rest/media/v1/upload_resource.py
+++ b/synapse/rest/media/v1/upload_resource.py
@@ -93,7 +93,7 @@ class UploadResource(Resource):
         # TODO(markjh): parse content-dispostion
 
         content_uri = yield self.media_repo.create_content(
-            media_type, upload_name, request.content.read(),
+            media_type, upload_name, request.content,
             content_length, requester.user
         )