diff options
Diffstat (limited to 'uploader/static')
-rw-r--r-- | uploader/static/js/files.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/uploader/static/js/files.js b/uploader/static/js/files.js index 26092f7..9d6bca1 100644 --- a/uploader/static/js/files.js +++ b/uploader/static/js/files.js @@ -1,5 +1,4 @@ -var readFirstNLines = (fileelement, count, process_content_fns) => { - var thefile = fileelement.files[0]; +var readFirstNLines = (thefile, count, process_content_fns) => { var reader = new FileReader(); if(typeof thefile !== "undefined" && thefile !== null) { reader.addEventListener("load", (event) => { |