socket.io-file
socket.io-file copied to clipboard
Slow upload despite chunksize
Hi, First of all, thank you for the awesome library.
The upload works great however for some reason the chunkSize property does not increase the limit of the upload chunk. Here is the current node.js code:
var uploader = new SocketIOFile(socket, {
uploadDir: 'public/uploads',
chunkSize: 10240 * 1000,
transmissionDelay: 0,
overwrite: true
});
Based on the documentation, I believe the upload chunk is now 1KB (10240) * 1000 = 1MB.
However, from the console log, the chunk size seems to be limited to per 10240 (1KB).
10240 / 3022584 byte(s)
20480 / 3022584 byte(s)
30720 / 3022584 byte(s)
40960 / 3022584 byte(s)
51200 / 3022584 byte(s)
61440 / 3022584 byte(s)
71680 / 3022584 byte(s)
81920 / 3022584 byte(s)
I made sure to restart the node.js but no luck. Any idea what may be the problem?
Thank you