mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
fix webrtc file upload maybe #6309
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
ac0d805378
commit
e8cbebaffe
4 changed files with 12 additions and 6 deletions
|
|
@ -2193,7 +2193,7 @@
|
|||
if (start >= data.byteLength) {
|
||||
files.sendText(JSON.stringify({ action: 'uploaddone', reqid: uploadFile.xfilePtr }));
|
||||
} else {
|
||||
var end = uploadFile.xptr + 65565;
|
||||
var end = uploadFile.xptr + 65536;
|
||||
if (end > data.byteLength) { if (dataPriming == true) { return; } end = data.byteLength; }
|
||||
var dataslice = new Uint8Array(data.slice(start, end))
|
||||
if ((dataslice[0] == 123) || (dataslice[0] == 0)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue