diff options
author | Jose Antonio Marquez | 2012-03-21 12:03:51 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-21 12:03:51 -0700 |
commit | b1a64afd2840efe9397b68bfd7a86e4e45982944 (patch) | |
tree | be51787a221f8be8584389c003f3e9eeef8e02f1 /js/io | |
parent | beb72aa033f42d09d54a4ea6cc6b5ca59cc6fae7 (diff) | |
parent | 873bb850a44d3b388fe6742c6aadc6e0caaae30b (diff) | |
download | ninja-b1a64afd2840efe9397b68bfd7a86e4e45982944.tar.gz |
Merge branch 'refs/heads/FileIO' into FileIO-Montage-Components
Diffstat (limited to 'js/io')
-rwxr-xr-x | js/io/system/coreioapi.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index f428a229..ae249480 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js | |||
@@ -393,12 +393,12 @@ exports.CoreIoApi = Montage.create(Component, { | |||
393 | xhr = new XMLHttpRequest(); | 393 | xhr = new XMLHttpRequest(); |
394 | // | 394 | // |
395 | xhr.open("POST", serviceURL, false); | 395 | xhr.open("POST", serviceURL, false); |
396 | xhr.responseType = "arraybuffer"; | 396 | //xhr.responseType = "arraybuffer"; |
397 | if(file.contentType && file.contentType.length) | 397 | if(file.contentType && file.contentType.length) |
398 | xhr.setRequestHeader("Content-Type", file.contentType); | 398 | xhr.setRequestHeader("Content-Type", file.contentType); |
399 | else | 399 | else |
400 | xhr.setRequestHeader("Content-Type", "text/plain"); | 400 | xhr.setRequestHeader("Content-Type", "text/plain"); |
401 | 401 | ||
402 | if (file.contents) | 402 | if (file.contents) |
403 | xhr.send(file.contents); | 403 | xhr.send(file.contents); |
404 | else | 404 | else |