Skip to content

Local file header properties #778

@skonkalmatt

Description

@skonkalmatt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions