Fix attachments
This commit is contained in:
parent
3103eaa192
commit
07a23f0759
3 changed files with 19 additions and 7 deletions
|
@ -192,16 +192,15 @@ var API = new function() {
|
|||
urlParameters : '/' + id,
|
||||
do_auth : true,
|
||||
}).then(function(response) {
|
||||
console.log(response);
|
||||
return new Promise(function(resolve, reject) {
|
||||
$.ajax(response.location, {
|
||||
type : "GET",
|
||||
xhrFields: {
|
||||
responseType: "arraybuffer"
|
||||
},
|
||||
/*headers: {
|
||||
headers: {
|
||||
"Content-Type": "application/octet-stream"
|
||||
},*/
|
||||
},
|
||||
|
||||
success : function(response, textStatus, jqXHR) {
|
||||
resolve(response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue