Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301110

Uploading files should have more robust default tokens

$
0
0

Problem/Motivation

This is a follow-up from #2128055: Files should be uploaded to directories based on tokens by default. Because we really needed sane defaults for 8.0.0 instead of uploading all files in the same directory, a consensus was found with YYYY-MM to at least get something in during the RC triage phase.

Proposed resolution

Improve those defaults as discussed at length in #2128055: Files should be uploaded to directories based on tokens by default - Going with [field-storage:name]/[date:custom:Y]-[date:custom:m] or [field-storage:name]/[date:custom:Y]/[date:custom:m] still seems to be under discussion. From an auditability perspective, [entity:machine-name] was also suggested and is not necessarily superior to [field-storage:name] but simply a different approach.

UX and security concerns have been discussed in #2128055: Files should be uploaded to directories based on tokens by default already.

Remaining tasks

Once #2128055: Files should be uploaded to directories based on tokens by default has been committed, create a patch based on #2128055-132 to start with. Iterate on it until we've decided what's the final approach we want to go with.

User interface changes

  • Users see new tokens in the file directory field defaults
  • Users see computed tokens in the URL bar for files

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 301110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>