Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chunk upload bug #2762

Closed
martin-1120 opened this issue Nov 4, 2018 · 1 comment
Closed

chunk upload bug #2762

martin-1120 opened this issue Nov 4, 2018 · 1 comment
Assignees

Comments

@martin-1120
Copy link

file1= 50M ,split by 10M
send 5 count is right,
but it send 6 count,because of:
elFinder-2.1.42 efinder.full.js line 6534:

while(start <= blobSize)

it should update to: while(start < blobSize)

bug code :
chunked[chunkID] = 0; while(start <= blobSize) { chunk = blob[blobSlice](start, end); chunk._chunk = blob.name + '.' + (++chunks) + '_' + total + '.part'; chunk._cid = chunkID; chunk._range = start + ',' + chunk.size + ',' + blobSize; chunk._mtime = blobMtime; chunked[chunkID]++;

@nao-pon nao-pon self-assigned this Nov 4, 2018
@nao-pon
Copy link
Member

nao-pon commented Nov 4, 2018

@laiyangwen Yes, that's right. So, I'll fix it. Thanks! 👍

@nao-pon nao-pon closed this as completed in 187f297 Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants