Browse Source

Fix #24: Update readAsBinaryString to readAsArrayBuffer

Kartik Visweswaran 10 years ago
parent
commit
5fc25747ba
4 changed files with 8 additions and 2 deletions
  1. 6 0
      CHANGE.md
  2. 1 1
      bower.json
  3. 1 1
      js/fileinput.js
  4. 0 0
      js/fileinput.min.js

+ 6 - 0
CHANGE.md

@@ -1,3 +1,9 @@
+version 2.2.0
+=============
+**Date:** 19-Aug-2014
+
+1. (enh #24): Update readAsBinaryString to readAsArrayBuffer
+
 version 2.1.0
 =============
 **Date:** 11-Aug-2014

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
     "name": "bootstrap-fileinput",
-    "version": "2.1.0",
+    "version": "2.2.0",
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "authors": [
         "Kartik Visweswaran <[email protected]>"

+ 1 - 1
js/fileinput.js

@@ -427,7 +427,7 @@
                     if (isTxt) {
                         reader.readAsText(file);
                     } else {
-                        reader.readAsBinaryString(file);
+                        reader.readAsArrayBuffer(file);
                     }
                 } else {
                     $preview.append("\n" + self.previewOtherTemplate.replace("{previewId}", previewId).replace("{caption}", caption));

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff