Closed arturzx closed 3 years ago
👍 Thanks so much @arturzx !!
@alican any chance we can get a version with this PR?
@alican any chance we can get a version with this PR?
Hey @jsproull , Thanky you for your pull request. I will check it tonight and merge it to the master branch.
I've made fix for issue #18. Chunk file upload leads to file with zeroes and last chunk. Problem is 'wb' mode when opening file. This mode always truncating file and seek() to chunk offset leads to fill file with zeroes.
My patch changes file creation - open with 'wb' mode and write one \0 byte at file_size-1 offset, this operation creates sparse file with proper size, and chunk writes to file opened with 'r+b' mode - read and write, without truncating.