increase uploadFile buffer to speed up file uploads #6169

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2024-06-11 17:02:20 +01:00
parent b08f3827f5
commit 74d6252699
4 changed files with 7 additions and 7 deletions

View File

@@ -2364,7 +2364,7 @@
function p13uploadNextPart(dataPriming) {
if (uploadFile.xreader != null) return; // Data reading already in process
if (uploadFile.xptr >= uploadFile.xfile.size) return;
var end = uploadFile.xptr + 16384;
var end = uploadFile.xptr + 65565;
if (end > uploadFile.xfile.size) { if (dataPriming == true) { return; } end = uploadFile.xfile.size; }
uploadFile.xreader = new FileReader();
uploadFile.xreader.onerror = function (err) { console.log(err); }