Skip to content

Commit 97a869d

Browse files
committed
fixed calling $upload.http for non-HTML5
1 parent 93bb480 commit 97a869d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/war/js/angular-file-upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ angularFileUpload.service('$upload', ['$http', '$rootScope', '$timeout', functio
1212
config.method = config.method || 'POST';
1313
config.headers = config.headers || {};
1414
config.transformRequest = config.transformRequest || function(data) {
15-
if (data instanceof ArrayBuffer) {
15+
if (window.ArrayBuffer && data instanceof ArrayBuffer) {
1616
return data;
1717
}
1818
return $http.defaults.transformRequest[0](data);

nuget/Package.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>angular-file-upload</id>
55
<title>Angular file upload</title>
6-
<version>1.2.2</version>
6+
<version>1.2.3</version>
77
<authors>Danial Farid, Georgios Diamantopoulos (nuget package)</authors>
88
<owners>Danial Farid</owners>
99
<licenseUrl>https://github.com/danialfarid/angular-file-upload/blob/master/LICENSE</licenseUrl>

0 commit comments

Comments
 (0)