Provide Drupal root path on file system admin form

Created on 12 April 2016, over 9 years ago
Updated 13 February 2023, over 2 years ago

It is not always obvious what directory should be used for the private file system path, especially for sites on shared hosting.

It would be helpful to show the full path to the Drupal root directory on the file system admin form (/admin/config/media/file-system)

✨ Feature request
Status

Needs work

Version

10.1 ✨

Component
SystemΒ  β†’

Last updated 18 minutes ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom malcomio

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    This could use an issue summary update for the proposed solution. Seems there is still discussion going on so when the path forward is decided it should be added to the IS. Will help the committer.

  • Status changed to Needs review over 2 years ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    Rerolled #21 in a MR. Added descriptions for items regarding absolute values if applicable.

  • Status changed to Needs work over 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks!

    Code wise I think it looks fine. Not sure if we will need a trigger_error for the new parameter or not.

    This could use a simple change record though to announce the new parameter option.

  • Status changed to Needs review over 2 years ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    Added CR https://www.drupal.org/node/3341696 β†’
    Updated constructor to handle new parameter addition.

  • Status changed to RTBC over 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks think this good for committer review now.

  • Status changed to Needs work over 2 years ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    This is changing the user interface, adding tag. As such this should have before and after screenshot available from the issue summary. This is also adding text to the public and private file descriptions, so I think this should have a usability review.

    I read the change record, well several times, and I am still not sure what 'related' means in "public, private, and temporary paths are related". Tagging for a change record update. This is not a complicated change but a screenshot could be useful in the change record.

    I skimmed the patch and made some comments. I also note this was set to RTBC with an unresolved comment.

  • Status changed to Needs review over 2 years ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    Changed the relative paths with absolute as this will show the actual location of specific stream wrappers.
    Added check for path accessibility. The realpath() file_system method fails absolute path resolving if the directory not exists.
    I have added screenshots before β†’ , after β†’ , and after with warning messages β†’ .

  • Status changed to Needs work about 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Brought this up in #ux channel and it was briefly looked at but was mentioned

    taken a look but it would be helpful if the issue summary would have been updated illustrating the changes that will be made. at the moment the ui changes section only states The content of the page File system will be updated. . even if i apply a patch i consider it helpful to get an overview which changes were made.

  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    I agree that IS needs to be updated, but please check the screenshots from #35.
    The latest changes in MR convert paths to absolute if they are relative. And if the destination does not exist, the path value is printed as is (relative or absolute) with an appropriate warning message that reuses existing sentences and translations.
    In case such behavior is acceptable I'll update IS as I can.

  • Pipeline finished with Failed
    over 1 year ago
    Total: 862s
    #45610
  • Pipeline finished with Failed
    over 1 year ago
    Total: 1133s
    #45611
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    rerolled
    assets filesystem wrapper added since then
    if #35 comparison approach is good to go with, I'm ready to create updated screenshots and attach them to the IS.

  • Pipeline finished with Success
    over 1 year ago
    #118687
  • First commit to issue fork.
  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    Rebased the MR and added screenshots and user interface changes to the issue summary. I'm not sure the change record is really necessary.

    The one minor concern I have is that it's now unclear if you were to move your Drupal installation to another location, would the file system paths remain in their original locations? That would depend on what's in your settings.php file, and you can no longer determine the answer from the config page.

Production build 0.71.5 2024