Skip to content

Media Downloads: use media_entity_download to serve links to documents #294

@finnlewis

Description

@finnlewis

Coming from #254

https://www.drupal.org/project/media_entity_download

This module is very popular and is mainained by berdir, so comes with good creds.

This will allow us to set links to files to be like:

/media/123/download

PHP then streams the file, with cache tags.

If we go this way, we'd then want to

  • 1. Update the linkit document links to serve the canonical media/123/download link
  • 2. Update the media entity embed to provide the link to the canonical media/123/download
  • 3. Maybe update other places we link to documents ( although this may be covered by 2.)
  • 4. Add permissions for anonymous and authenticated to access dowload media entity links.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions