We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d69e783 + 0342a63 commit 5e736ceCopy full SHA for 5e736ce
1 file changed
samples/Node.js/flow-node.js
@@ -47,7 +47,7 @@ module.exports = flow = function(temporaryFolder) {
47
// The chunk in the POST request isn't the correct size
48
return 'invalid_flow_request3';
49
}
50
- if (numberOfChunks > 1 && chunkNumber == numberOfChunks && fileSize != ((totalSize % chunkSize) + chunkSize)) {
+ if (numberOfChunks > 1 && chunkNumber == numberOfChunks && fileSize != ((totalSize % chunkSize) + parseInt(chunkSize))) {
51
// The chunks in the POST is the last one, and the fil is not the correct size
52
return 'invalid_flow_request4';
53
0 commit comments