From ac82194ed43c6ca33ce612e73f9ce2e1ffeb2fd5 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 28 Oct 2016 15:39:05 -0400 Subject: [PATCH] Faster file uploads and less console spam --- resources/views/server/files/add.blade.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/views/server/files/add.blade.php b/resources/views/server/files/add.blade.php index 29452e888..7019c0cdc 100644 --- a/resources/views/server/files/add.blade.php +++ b/resources/views/server/files/add.blade.php @@ -160,7 +160,7 @@ $(window).load(function () { var siofu = new SocketIOFileUpload(uploadSocket); - siofu.chunkDelay = 50; + siofu.chunkDelay = 25; document.getElementById("uploader_box").addEventListener("click", siofu.prompt, false); siofu.listenOnDrop(document.getElementById("uploader_box")); @@ -183,7 +183,6 @@ $(window).load(function () { }); siofu.addEventListener('progress', function(event) { - console.log(event.file); var percent = event.bytesLoaded / event.file.size * 100; if (percent >= 100) { $('.prog-bar-text-' + event.file.meta.identifier).text('Upload Complete');