Redirect to private file drops filename

Created on 27 March 2022, over 2 years ago
Updated 28 April 2023, about 1 year ago

Problem/Motivation

I've moved a lot of public files into a private space and would like to add redirects from those original public locations. However, when redirecting to a private file the filename is lost upon download - the user sees just files, sometimes with the original file extension.

Steps to reproduce

Redirecting a public file to a private file can be done by adding a redirect, eg from /sites/default/files/2021-03/my_document.docx to /system/files/2021-03/my_document.docx. However once submitted this is saved as /system/files?files=2021-03/my_document.docx. Fetching this link, either via the redirect or directly, will download the file files.docx rather than my_document.docx.

πŸ› Bug report
Status

Active

Version

1.7

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia campbellt_

    Hi gaddman,

    We're experiencing the same issue as you mentioned above. Did you find a solution for this?

  • Hey campbellt_,
    No solution unfortunately. I didn't hear of any of our users complaining about it, although the chances of them bothering to tell someone and that feedback reaching me was pretty slim. One thing I noticed just re-testing now - the issue shows on Chrome & Edge but not Firefox.

Production build 0.69.0 2024