diff --git a/src/services/FileItem.js b/src/services/FileItem.js index 01ceba7..4564d04 100644 --- a/src/services/FileItem.js +++ b/src/services/FileItem.js @@ -35,6 +35,7 @@ export default function __identity($compile, FileLikeObject) { formData: copy(uploader.formData), removeAfterUpload: uploader.removeAfterUpload, withCredentials: uploader.withCredentials, + responseType: uploader.responseType, disableMultipart: uploader.disableMultipart, method: uploader.method }, options, { diff --git a/src/services/FileUploader.js b/src/services/FileUploader.js index 0d563a1..ca1e2ff 100644 --- a/src/services/FileUploader.js +++ b/src/services/FileUploader.js @@ -510,6 +510,7 @@ export default function __identity(fileUploaderOptions, $rootScope, $http, $wind xhr.open(item.method, item.url, true); xhr.withCredentials = item.withCredentials; + xhr.responseType = item.responseType; forEach(item.headers, (value, name) => { xhr.setRequestHeader(name, value);