Skip to content

[1.0.0-pre-release]c.Attachment download file is 0 byte #2

@cheft

Description

@cheft

Use c.Attachment("./test.txt"), the download file is 0 bytes.

The source file has content, but the download does not

app.Get("/files/test", func(c *fiber.Ctx) {
  c.Attachment("./test.txt")
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions