mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 03:44:52 -04:00
Implemented GETs for the ContentRepoResource. It all actually appears to be working.
This commit is contained in:
parent
590ab24c85
commit
58548ab557
3 changed files with 65 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue