File doesn't stream last 12 bytes
Hi, I am using unzipper to stream files from a zip to other upload locations. It works great until trying to set the file over http. I am using a TUS uploader which I have used without unzipper with success.
` const unzipper = require('unzipper'); const cd = await unzipper.Open.file( '../d607bbd9-3853-4d83-9fa0-1d5af51bd100.zip' ); const filevideo = cd.files.filter((file) => file.path.endsWith('mpg'))[0]; const stream = filevideo.stream(); const fileType = await fromStream(stream);
// Upload using tus lib
I track the progress event and I get292848996, 292849008, 100.00%` the stream never sends the last 12 bytes.
I have verified that createReadStream works just reading the same file after unzipping the archive and not using unzipper.
I have also tried changing the chunk size of the reader to see if that is the issue. So far nothing makes a change it always stops at the same number. I tried different archives and different files within the archive. always leaves 12 bytes.
Please help.