Skip to content

Context aware and customizable upload file naming #44

@RickCogley

Description

@RickCogley

Consider: upload image prep is a bit of a burden for users, asking them to follow naming conventions or to pre-optimize by compressing or resizing. We can help in Lume with the Picture plugin, and I'm wondering if the CMS could also be configurable to help.

When uploading in the context of a page, the page has fields so could the uploaded image be made to use those? For image1.png, rename like this using tokens:

{pageFilename}-image1-{time}.png
{pageId}-image1-{pageLang}-{time}.png

The recent addition of the ability to upload multiple files would necessitate a sequence suffix when a naming conflict arose from how a renaming rule was set, I believe.

There is a hidden benefit to this because it makes images in uploads easier to find later, when you're archiving a blog or tidying up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions