Skip to content

Commit 34008ab

Browse files
author
nerv
committed
Fixed: Chrome re-add issue (nervgh#115)
1 parent 468fca0 commit 34008ab

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

angular-file-upload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Angular File Upload v0.5.5
2+
Angular File Upload v0.5.6
33
https://github.com/nervgh/angular-file-upload
44
*/
55
(function(angular, factory) {
@@ -78,7 +78,7 @@ app.directive('ngFileSelect', ['$fileUploader', function($fileUploader) {
7878

7979
scope.$emit('file:add', data, options);
8080

81-
if(!$fileUploader.isHTML5 && !element.attr('multiple')) {
81+
if($fileUploader.isHTML5 && element.attr('multiple')) {
8282
element.prop('value', null);
8383
}
8484
});

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.

angular-file-upload.min.map

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

bower.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": "0.5.5",
3+
"version": "0.5.6",
44
"main": "angular-file-upload.js",
55
"homepage": "https://github.com/nervgh/angular-file-upload",
66
"ignore": ["examples"],

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": "0.5.5",
3+
"version": "0.5.6",
44
"homepage": "https://github.com/nervgh/angular-file-upload",
55
"description": "Angular File Upload is a module for the AngularJS framework",
66
"author": {

src/scripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* The angular file upload module
33
* @author: nerv
4-
* @version: 0.5.5, 2014-04-15
4+
* @version: 0.5.6, 2014-04-24
55
*/
66
var app = angular.module('angularFileUpload', []);

src/scripts/directives/ngFileDrop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The angular file upload module
33
* @author: nerv
4-
* @version: 0.5.5, 2014-04-15
4+
* @version: 0.5.6, 2014-04-24
55
*/
66

77
// It is attached to an element that catches the event drop file

src/scripts/directives/ngFileOver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The angular file upload module
33
* @author: nerv
4-
* @version: 0.5.5, 2014-04-15
4+
* @version: 0.5.6, 2014-04-24
55
*/
66

77
// It is attached to an element which will be assigned to a class "ng-file-over" or ng-file-over="className"

src/scripts/directives/ngFileSelect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The angular file upload module
33
* @author: nerv
4-
* @version: 0.5.5, 2014-04-15
4+
* @version: 0.5.6, 2014-04-24
55
*/
66

77
// It is attached to <input type="file"> element like <ng-file-select="options">
@@ -20,7 +20,7 @@ app.directive('ngFileSelect', ['$fileUploader', function($fileUploader) {
2020

2121
scope.$emit('file:add', data, options);
2222

23-
if(!$fileUploader.isHTML5 && !element.attr('multiple')) {
23+
if($fileUploader.isHTML5 && element.attr('multiple')) {
2424
element.prop('value', null);
2525
}
2626
});

src/scripts/services/$fileUploader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The angular file upload module
33
* @author: nerv
4-
* @version: 0.5.5, 2014-04-15
4+
* @version: 0.5.6, 2014-04-24
55
*/
66
app.factory('$fileUploader', ['$compile', '$rootScope', '$http', '$window', function($compile, $rootScope, $http, $window) {
77
'use strict';

0 commit comments

Comments
 (0)