summary refs log tree commit diff
path: root/webclient/components/fileUpload/file-upload-service.js
diff options
context:
space:
mode:
Diffstat (limited to 'webclient/components/fileUpload/file-upload-service.js')
-rw-r--r--webclient/components/fileUpload/file-upload-service.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/webclient/components/fileUpload/file-upload-service.js b/webclient/components/fileUpload/file-upload-service.js
index 0826666fe4..d620e6a4d0 100644
--- a/webclient/components/fileUpload/file-upload-service.js
+++ b/webclient/components/fileUpload/file-upload-service.js
@@ -32,8 +32,9 @@ angular.module('mFileUpload', [])
         console.log("Uploading " + file.name + "... to /matrix/content");
         matrixService.uploadContent(file).then(
             function(response) {
-                console.log("   -> Successfully uploaded! Available at " + location.origin + response.data.url);
-                deferred.resolve(location.origin + response.data.url);
+                var content_url = location.origin + "/matrix/content/" + response.data.content_token;
+                console.log("   -> Successfully uploaded! Available at " + content_url);
+                deferred.resolve(content_url);
             },
             function(error) {
                 console.log("   -> Failed to upload "  + file.name);