Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local file header properties #778

Open
skonkalmatt opened this issue Jul 18, 2024 · 0 comments
Open

Local file header properties #778

skonkalmatt opened this issue Jul 18, 2024 · 0 comments

Comments

@skonkalmatt
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant