Problem/Motivation

ACSF files directory

I've faced an issue, where ACSF specific files directory path like /sites/g/files/abcdefXXXX/files/documents/test.docx gives rise to problems.

Steps to reproduce

For example, you have a big project which contains some documents in the files directory. And your other projects have direct links to these documents like <a href="{main_project}/sites/g/files/abcdefXXXX/files/documents/test.docx">File</a>. The document was added as a document media type.

Once you decided to add some features to your production and made a clone of the current version.
And, with a new instance, you have a new public directory path for your pre-prod instance. This means, that all links become broken right after the new instance going live instead of the current.

Proposed resolution

Custom ACSF module which allows admin to determine media types, which can give us a document file by /media/{id} or media alias URL.
This module also allows to disable access to some media types and choose the type of direct file access(download or view).

CommentFileSizeAuthor
acsf_direct_media.patch12.89 KBdenis.pelyukhow

Comments

denis.pelyukhow created an issue. See original summary.

denis.pelyukhow’s picture

Issue summary: View changes
denis.pelyukhow’s picture

Issue summary: View changes