Skip to content

react: Allow attachments with unsupported file types to be downloaded #80

Closed
@mpkorstanje

Description

@mpkorstanje

When I attach an application/octet-stream I want to be able to download the attachment and open it using a dedicated application. This also applies to all other supported and unsupported types.

image

Additionally when I attach a file with a file name, I this file name should be reflected in the download. So for example when I download the file attached with the code below then the file dialog should suggest cucumber-growing-on-vine.jpg as the file name.

        Path path = Paths.get("src/test/resources/features/attachments/cucumber-growing-on-vine.jpg");
        byte[] bytes = Files.readAllBytes(path);
        String fileName = path.getFileName().toString();
        scenario.attach(bytes, "image/jpg", fileName);

Also, nothing can plausible render an application/octet-stream so the request for a PR isn't necessary here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions