Faster file uploads and less console spam

This commit is contained in:
Dane Everitt 2016-10-28 15:39:05 -04:00
parent 2e288f4146
commit ac82194ed4
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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');