Skip to content

[Bug]: Attachment download is not working #45

Open
@abrardev99

Description

@abrardev99

What happened?

Attachment downloading is not working, and getting the file does not exist

Image

You can see file does exist

Image

If I change the implementation to the following, it starts working fine.

return Storage::download($file, $filename, [
    'Content-Type' => $attachment->mime,
]);

Looks like response()->download is not working as expected.

I'm not sure if it's really a bug. Open to your thoughts and suggestions.

How to reproduce the bug

  1. Configure MinIO locally or use s3 for storage.
  2. Send an email with an attachment nt
  3. Try to download the attachment from the Filament resource.

Package Version

2.3.6

PHP Version

8.3

Laravel Version

11

Which operating systems does with happen with?

macOS

Notes

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions