Make the content repo work with in daemon mode. Return the full url on upload. Update the webclient to use new content repo api.

This commit is contained in:
Erik Johnston 2014-08-22 10:25:27 +01:00
parent 53f4fbd99a
commit acf5127604
3 changed files with 24 additions and 9 deletions

View file

@ -33,7 +33,7 @@ angular.module('mFileUpload', ['matrixService', 'mUtilities'])
console.log("Uploading " + file.name + "... to /matrix/content");
matrixService.uploadContent(file).then(
function(response) {
var content_url = location.origin + "/matrix/content/" + response.data.content_token;
var content_url = response.data.content_token;
console.log(" -> Successfully uploaded! Available at " + content_url);
deferred.resolve(content_url);
},