From 93cc2ff803275495f2f7a3709f63483c26500faf Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 1 Oct 2017 12:01:18 -0400 Subject: [PATCH] mor --- contrib/static/overchan.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/static/overchan.js b/contrib/static/overchan.js index 87f0045..6981f3d 100644 --- a/contrib/static/overchan.js +++ b/contrib/static/overchan.js @@ -114,8 +114,11 @@ onready(function() { console.log(input); if(input.files) { - for (var file in input.files) + for (var i =0 ; i < input.files.length; i++) + { + var file = input.files[i]; data.append(input.name, file, file.name); + } } else if(input.name) data.append(input.name, input.value);