Skip to content

Determine how to support non-default drupal public/private files directories #60

Closed

Description

@tannerjfco

What happened (or feature request):

We currently assume that sites will use the standard public files path of sites/default/files when determining where imported files should go, and how nginx rewrite rules are configured to support imagestyles.

What you expected to happen:

We will need to provide a way to make public and private file paths configurable. Unfortunately these configurations are not trivial to change after a site has been in existence for some time, as this path gets stored in entries in the files table for d7, and could also be in any WYWIWYG-derived content.

Anything else do we need to know:

Related source links or issues (like source JIRA issue):

#57 is where we originally discussed this need, though it does not fit within the scope of that or the 0.1 milestone.
This also relates closely to #59

Activity

  1. cyberswat commented on Mar 21, 2017

    @cyberswat
    Contributor

    @beeradb Can you help us evaluate this request so that it can move closer to actionable?

  2. added this to the milestone on May 3, 2017
  3. modified the milestones: , on May 19, 2017
  4. rickmanelius commented on May 30, 2017

    @rickmanelius
    Contributor

    Related #59

  5. modified the milestones: , on Jun 9, 2017
  6. rickmanelius commented on Jun 9, 2017

    @rickmanelius
    Contributor

    Leaving this in v0.8 because of the dependency in #293.

  7. rfay commented on Jun 15, 2017

    @rfay
    Member

    IMO this is easier (technically) than we might have been thinking.

    • We can easily mount any host-level directory onto any expected directory in the container, meaning that the directory will "just be there" where the code expects. This works perfectly for private files, which are not exposed to the webserver at all (at least on Drupal) and thus require no configuration.
    • The most common way of managing alternate directories for public files is the lowly symlink - that's true almost everywhere in production. So if the files are stored in /var/data, people use sudo ln -s /var/data ..../sites/default/files - We could easily create a symlink and a mount where needed.
  8. rickmanelius commented on Jun 16, 2017

    @rickmanelius
    Contributor

    @rfay's last comment certainly describes how to solve the problem at a technical level. We would still need to address how a user implements this (when in the config process does this occur? how do they set/update it? etc). Need to think a little more before we have a path forward.

  9. 7 remaining items

  10. modified the milestones: , , on Jun 27, 2017
  11. modified the milestones: v1.1.0, v1.4.0 on Oct 21, 2017
  12. modified the milestones: v1.4.0, v1.2.0 on Dec 11, 2017
  13. rickmanelius commented on Dec 11, 2017

    @rickmanelius
    Contributor

    This is related to CMS support, which we are prioritizing in v1.2.0 (or earlier).

  14. rfay commented on Dec 11, 2017

    @rfay
    Member

    If the various files directories are on the host mount with the code (which would often be the case), and if we drop the import-files explicit command, then the basic case here is pretty easy.

    OTOH when public files is in a strange place... I wouldn't be surprised if people don't just have to work with that, and they could add one of @tannerjfco's lovely post-import steps to update the db to point public and private files to a decent location. I'm pretty sure we're not going to solve this one entirely on our own, there's going to be a mixture of support from us and action from our customers.

  15. removed this from the v1.2.0 milestone on May 17, 2018
  16. rfay commented on Jul 19, 2019

    @rfay
    Member

    Since this never seems to come up at all, and since files directories innately live on host anyway, and since nobody seems to use import-files anyway (except by extension Pantheon users), I'm going to close. We'll come back if it becomes an issue. But it's been quiet a really long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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