Issue Bug Closed

#87576File Storage `name` field is needlessly very short (30 characters)

Leonie Philine 01/29/19, 22:43 updated 05/07/19, 12:13

Description

TCA for sys_file_storage:

        'name' => [
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_file_storage.name',
            'config' => [
                'type' => 'input',
                'size' => 30,
                'eval' => 'required'
            ]
        ],

in comparison, Filemounts have a sane title length:

        'title' => [
            'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.title',
            'config' => [
                'type' => 'input',
                'size' => 50,
                'max' => 255,
                'eval' => 'required,trim'
            ]
        ],

There is absolutely no reason to have a storage name field of such a short length! (If you can come up with any – please enlighten me.)

When using FAL secure storages (“Access > Publicly available?” = NO), optionally with EXT:fal_securedownload, then 30 characters quickly become too short if you have a multi-word site title and want to add e.g. “(secure)” to the name.

In any case, 30 characters is short for no reason, and fixing it is a no-brainer.

Reviews 2