diff options
| author | oweissbarth | 2014-09-14 17:25:02 +0200 |
|---|---|---|
| committer | oweissbarth | 2014-09-14 17:25:18 +0200 |
| commit | 3dcf698e84369fed8a1ff509a2ed2c60618c9d1a (patch) | |
| tree | 6c0698a1bbd28bffb1ec520d716368d77391b775 | |
| parent | a5334d76657bd3abe227e728656f94d92a782bc3 (diff) | |
| download | files.iamfabulous.de-3dcf698e84369fed8a1ff509a2ed2c60618c9d1a.tar.gz | |
| -rw-r--r-- | www/static/js/dropzone.js | 5 |
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."); |
