-
|
In am using ChunkedUploady with a chunksize set to 350000. The first chunk that is uploaded is set to that size but after that chunks are larger as reported in the useChunkStartListener > data.chunkItem.file.size. Could this have any thing to do with what the server responds with or does it just work with the file size and chunk id? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey @getsetbro, interesting question. What is the difference you're seeing? Is it big or a few bytes? |
Beta Was this translation helpful? Give feedback.
-
|
My team figured this out. The chunk size was coming in via a REACT_APP_ environment variable - which is a string, not a number. The JS was then adding the strings instead numbers. Converting the string to a number first solves it. |
Beta Was this translation helpful? Give feedback.
My team figured this out. The chunk size was coming in via a REACT_APP_ environment variable - which is a string, not a number. The JS was then adding the strings instead numbers. Converting the string to a number first solves it.