Skip to content

Commit 93bb480

Browse files
committed
1 parent 42cf826 commit 93bb480

8 files changed

+10
-9
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ angularFileUpload.service('$upload', ['$http', '$rootScope', '$timeout', functio
6666
return promise;
6767
};
6868
this.upload = function(config) {
69+
config.headers = config.headers || {};
6970
config.headers['Content-Type'] = undefined;
7071
config.transformRequest = config.transformRequest || $http.defaults.transformRequest;
7172
var formData = new FormData();

dist/angular-file-upload-html5-shim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**!
22
* AngularJS file upload shim for angular XHR HTML5 browsers
33
* @author Danial <danial.farid@gmail.com>
4-
* @version 1.2.2
4+
* @version 1.2.3
55
*/
66
if (window.XMLHttpRequest) {
77
if (window.FormData) {

dist/angular-file-upload-html5-shim.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-file-upload-shim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**!
22
* AngularJS file upload shim for HTML5 FormData
33
* @author Danial <danial.farid@gmail.com>
4-
* @version 1.2.2
4+
* @version 1.2.3
55
*/
66
(function() {
77

dist/angular-file-upload-shim.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-file-upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**!
22
* AngularJS file upload/drop directive with http post and progress
33
* @author Danial <danial.farid@gmail.com>
4-
* @version 1.2.2
4+
* @version 1.2.3
55
*/
66
(function() {
77

@@ -66,7 +66,7 @@ angularFileUpload.service('$upload', ['$http', '$rootScope', '$timeout', functio
6666
return promise;
6767
};
6868
this.upload = function(config) {
69-
config.headers = config.headers || {};
69+
config.headers = config.headers || {};
7070
config.headers['Content-Type'] = undefined;
7171
config.transformRequest = config.transformRequest || $http.defaults.transformRequest;
7272
var formData = new FormData();

dist/angular-file-upload.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-file-upload",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"devDependencies": {
55
"grunt": "~0.4.1",
66
"grunt-contrib-uglify": "~0.2.7",

0 commit comments

Comments
 (0)