Skip to content

Large file option has not been set when using new_stream #390

@0x7d8

Description

@0x7d8

Describe the bug
When using ZipWriter::new_stream, any attempt of including a 4gb+ file will cause a Large file option has not been set, even if the option is set on each zip options object using .large_file(true)

To Reproduce
Steps to reproduce the behavior:

  1. Create a zip writer using new_stream
  2. Create a zip options object and set .large_file(true)
  3. Use std::io::copy to read a local file over 4gb
  4. See error

Expected behavior
The file should write without problems as ZIP64

Screenshots
Image

Library version: 4.3.0
Rust version: 1.89.0
OS: Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Amazon Q development agentGenerate new features or iterate code based on issue descriptions and comments.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions