Ver código fonte

Fix #100 & Fix #101: Set right params for error thrown during reading of files

Kartik Visweswaran 10 anos atrás
pai
commit
a94e6bdb9e
4 arquivos alterados com 9 adições e 3 exclusões
  1. 6 0
      CHANGE.md
  2. 1 1
      README.md
  3. 2 2
      js/fileinput.js
  4. 0 0
      js/fileinput.min.js

+ 6 - 0
CHANGE.md

@@ -1,3 +1,9 @@
+version 4.1.5
+=============
+**Date:** 30-Dec-2014
+
+1. (bug #100, #101): Set right params for error thrown during reading of files.
+
 version 4.1.4
 =============
 **Date:** 26-Dec-2014

+ 1 - 1
README.md

@@ -7,7 +7,7 @@ The plugin incorporates a simple HTML markup with enhanced CSS styling of a HTML
 
 ![File Input Screenshot](https://lh3.googleusercontent.com/-3FiEmc_okc4/VBw_d2LBAJI/AAAAAAAAAL8/KbVj5X9Dus0/w596-h454-no/FileInput.jpg)
 
-> NOTE: The latest version of the plugin v4.1.4 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details. 
+> NOTE: The latest version of the plugin v4.1.5 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details. 
 
 ## Features  
 

+ 2 - 2
js/fileinput.js

@@ -1095,7 +1095,7 @@
                 $error.find('ul').append('<li>' + msg + '</li>');
             }
             $error.fadeIn(800);
-            self.raise(ev, [data, previewId, index]);
+            self.raise(ev, [data, previewId, index, self.reader]);
             addCss(self.$container, 'has-error');
             return true;
         },
@@ -1239,7 +1239,7 @@
                 ctr = self.filestack.length, 
                 throwError = function(msg, file, previewId, index) {
                     self.previewDefault(file, previewId, true);
-                    var outData = self.getOutData(formdata, {}, files);
+                    var outData = self.getOutData({}, {}, files);
                     return self.isUploadable ? self.showUploadError(msg, outData, previewId, index) : self.showError(msg, file, previewId, index);
                 };
             function readFile(i) {

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
js/fileinput.min.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff