Skip to content

Unable to download pdf if flarum is used as PWA #449

@piridium

Description

@piridium

Feature Request

If I set application/pdf as the “default file download template,” we can upload PDF files. Clicking on the download button is handled by JS, opens a new window and downloads the file as expected.
However, if we try the same thing in the web app (PWA via askvortsov/flarum-pwa on iOS), a blank window opens, but the download does not start.

Proposed solution

Is it possible to create another download template that initializes the download without JS simply via a <a href="...pdf" download>?

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