You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The comment above the setChunkSize line in the readme says you can pass a KB value (with 1024 as value).
But the method take the value and create Byte array with that value, without multiplicating it.
In the constructor however, it is written 2 x 1024 x 1024 which is 2 MB as Bytes
// Upload the file in chunks of 1KB sizes.
uploader.setChunkSize(1024);
I don't think they are wrong since 1KB = 1024 bytes. The number you pass to setChunkSize is interpreted as the number of bytes, not as kilobytes. Does that help?
Describe the bug
The comment above the
setChunkSize
line in the readme says you can pass a KB value (with 1024 as value).But the method take the value and create Byte array with that value, without multiplicating it.
In the constructor however, it is written
2 x 1024 x 1024
which is 2 MB as Byteshttps://github.com/tus/tus-java-client/blob/master/src/main/java/io/tus/java/client/TusUploader.java
The text was updated successfully, but these errors were encountered: