Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Home » Administer » Site configuration » File system
Under "Download method," a still more definite recommendation would be welcome. The default is set to "public." Is this the setting most recommended or most likely to be used? If not, it should be changed.
This section can be especially daunting for new users because they're told that if they make the wrong choice they can't change it later without risking problems. So extra clarity is called for.
Comment | File | Size | Author |
---|---|---|---|
#12 | filesystemtext_2.patch | 3.04 KB | keith.smith |
#4 | filesystemtext.patch | 3.14 KB | keith.smith |
Comments
Comment #1
Paul Natsuo Kishimoto CreditAttribution: Paul Natsuo Kishimoto commentedUpdated to 5.x-dev.
Comment #2
Paul Natsuo Kishimoto CreditAttribution: Paul Natsuo Kishimoto commentedComment #3
keith.smith CreditAttribution: keith.smith commentedMoving to documentation component.
Comment #4
keith.smith CreditAttribution: keith.smith commentedPatch attached that, while arguably not adding much additional clarity, does make a few simple text changes.
Comment #5
catchThese are sensible changes. public/private file handling may get into D7 so there's going to be less or no need to state a preference a release from now.
RTBC.
Comment #6
Gábor HojtsyWhy is
Relative paths will be resolved from the Drupal installation directory.
better then
Relative paths will be resolved relative to the Drupal installation directory.
? The current one seems to be cleaner to me than the new one proposed.
Comment #7
keith.smith CreditAttribution: keith.smith commentedI'm not sure that one is any "better" than the other; the original one:
Relative paths will be resolved relative to the Drupal installation directory.
seemed somewhat redundant. If its a relative path, then surely it will be resolved relatively.
But, that said, the change may not be much better.
At one iteration, I had something like:
Relative paths (paths that do not begin with '/') will be resolved from the Drupal installation directory.
That had the advantage of halfway explaining whether they had a relative path or not, but did not account for cross-platform peculiarities in file path naming. I suppose this might not be a problem -- I've never actually looked on a Windows system to see what this path looks like; perhaps the functions in question take care of that automatically?
Comment #8
Dries CreditAttribution: Dries commentedt('Location where uploaded files will be kept during previews. Relative paths will be resolved from the Drupal installation directory.'), '#after_build' => array('system_check_directory'),
I'm not sure what value the last sentence (i.e. 'Relative paths ...') adds -- why is this important for the administrator? That sentence looks redundant to me?
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedThe first change in the patch introduces a small error. “If the download method is to private” should be “. . . set to private.”
For the second change, does this work better: “Location where uploaded files will be kept during previews. You can enter either an absolute path (a path that starts from the root of your server) or a relative path (a path that starts from your Drupal installation directory). Relative paths do not begin with ‘/’.” (Is this the intended meaning?)
The third change seems to suffer from “you-phobia.” “You can change this at any time” is more clear, simple, and direct than “While this may be changed at any time.”
By the way, we still haven’t answered for the perplexed novice user my original question: Which download method is the recommended default?
Comment #10
catchI'd say absolute novices are unlikely to want fine grained file access permissions, and are quite likely to have server resource restrictions which they'll come against quicker with private file downloads. For a recommendation sentence:
"Unless your site has a need for fine grained control over file downloads, you should choose the public download method."
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commented"Unless your site has a need for fine grained control over file downloads, you should choose the public download method."
Great!
(Just one small change: "fine-grained," hyphenated.)
Comment #12
keith.smith CreditAttribution: keith.smith commentedPatch attached with adds the missing word from #9, addresses Dries' comment in #8. I used a variation of the changes suggested in #10 and #11.
Comment #13
catchLooks good to me!
Comment #14
Dries CreditAttribution: Dries commentedExcellent. I've committed the improvements to CVS HEAD so that they'll be part of Drupal 6. Keep it coming. :)
Comment #15
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.