Skip to content

PDF document filename with inline downloads #388

Open
@christatedavies

Description

@christatedavies

Hello there

I have found that if I run the following code:

$pdf->send("This-is_a_lovely__filename.pdf", true);

Then the PDF is automatically downloaded, with the correct filename. this is great

However, if I want the user to be able to view the PDF first, by using this:

$pdf->send("This-is_a_lovely__filename.pdf");

Then when the user saves the PDF, the filename becomes "document.pdf"

Is this a limitation of the browser? I'm using Firefox in this instance.

Thanks, Chris

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