Skip to content

File does not download on iPhone Chrome #60

@danielcranney

Description

@danielcranney

I am using this with NextJS, and it will work fine on desktop, but on Chrome on my iPhone it will not download.
Instead, I get a 'document' without a title. When I try to open it, it's not an image.

My download function is:

onClick={async () => {
const { exportComponentAsJPEG } = await import(
 "react-component-export-image"
);
exportComponentAsJPEG(basicDefaultRef);
}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions