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
I'm creating a simple zip where I add two files using append() and then finalize(). I then upload this zip to a service that as part of validation, compares central directory properties against local file header properties. In the validation the central directory properties are set as expected but the local file header properties are not. Namely the compressed size, uncompressed size, and crc-32 don't match. Zip files that I compress using file explorer and upload manually have properties set as expected.
Is this a known issue? Should I be creating the archive differently?
I'm creating a simple zip where I add two files using append() and then finalize(). I then upload this zip to a service that as part of validation, compares central directory properties against local file header properties. In the validation the central directory properties are set as expected but the local file header properties are not. Namely the compressed size, uncompressed size, and crc-32 don't match. Zip files that I compress using file explorer and upload manually have properties set as expected.
Is this a known issue? Should I be creating the archive differently?
const zip = archiver("zip")
zip.append(file1, {name: "content1.txt"});
zip.append(file2, {name: "conten2.txt"});
await zip.finalize();
Where file1 and file2 are exported strings.
The text was updated successfully, but these errors were encountered: