summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroweissbarth2014-09-14 17:25:02 +0200
committeroweissbarth2014-09-14 17:25:18 +0200
commit3dcf698e84369fed8a1ff509a2ed2c60618c9d1a (patch)
tree6c0698a1bbd28bffb1ec520d716368d77391b775
parenta5334d76657bd3abe227e728656f94d92a782bc3 (diff)
downloadfiles.iamfabulous.de-3dcf698e84369fed8a1ff509a2ed2c60618c9d1a.tar.gz
Fix #25 : for...of is not implemented in Chrome UPLOAD DOES NOT WORKHEADmaster
-rw-r--r--www/static/js/dropzone.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/static/js/dropzone.js b/www/static/js/dropzone.js
index 8a98a54..4b01f3b 100644
--- a/www/static/js/dropzone.js
+++ b/www/static/js/dropzone.js
@@ -19,10 +19,11 @@ var vfs_upload_queue = [];
}
function addToUploadQueue(files){
- for(file of files){
+ for(i= 0; i<files.length; i++){
+ file = files[i];
try {
reader = new FileReader();
- reader.readAsBinaryString(file);
+ reader.readAsBinaryString(files[i]);
} catch (NS_ERROR_FILE_ACCESS_DENIED) {
//file is a directory. Dropping of directories is only implemented in chrome > v21.
alert("file is a directory. Dropping of directories is only implemented in chrome > v21.");