Uploading files should have more robust default tokens

Created on 14 October 2015, about 9 years ago
Updated 19 May 2023, over 1 year ago

Problem/Motivation

This is a follow-up from πŸ“Œ Files should be uploaded to per year/month directories by default Fixed . 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 πŸ“Œ Files should be uploaded to per year/month directories by default Fixed - 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 πŸ“Œ Files should be uploaded to per year/month directories by default Fixed already.

Remaining tasks

Once πŸ“Œ Files should be uploaded to per year/month directories by default Fixed 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.

πŸ“Œ Task
Status

Closed: outdated

Version

10.1 ✨

Component
File systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡«πŸ‡·France anavarre πŸ‡ͺπŸ‡Ί

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

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

    Closing as outdated as there hasn't been any follow up or continuation in 7 years when an issue summary was requested.

    If still valid please reopen updating the issue summary

    Thanks!

Production build 0.71.5 2024