Fix attachments

This commit is contained in:
Matt Corallo 2014-05-15 01:02:15 -04:00
parent 3103eaa192
commit 07a23f0759
3 changed files with 19 additions and 7 deletions

View file

@ -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);