Open
Description
When using Resumable.js
, Flow.js
, or simple-upload.js
the last chunk can be bigger than the chunkSize
parameter. Max twice as big but it is not defined in any of the mentioned libraries' documentation.
At the moment OneBasedRequestBodyRange
component has the following check:
This makes it invalid without setting forceChunkSize
.
A configuration should be introduced for forceChunkSize
and the mentioned validation should compare totalSize
with (numberOfChunks + 1) * chunkSize
.
For now I will add a note in the README to use forceChunkSize
option when using the above mentioned libraries.