Url alias for private file uploads

Created on 14 August 2017, almost 7 years ago
Updated 11 October 2023, 8 months ago

Problem/Motivation

Currently it's impossible to add url alias for a private file.

Proposed resolution

Adjusts the priority of path_processor.files below 100 so that the request gets processed.

Remaining tasks

Write tests.

User interface changes

None

API changes

None

Data model changes

None

Original report by [matt_paz]

Should we be able to add a url_alias (from /admin/config/search/path) for a private file?
Right now it allows me to add an alias (and I can see that it is being rendered in the front end) but it generates a 404.

In my particular case the path for the uploaded file is ...
/system/files/2017-08/1.pdf

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
File moduleΒ  β†’

Last updated 4 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States matt_paz

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.69.0 2024