Is there a way to set the upload folder in the backend? TYPO3 v11.5

180 Views Asked by At

I want to restrict/change/set access to a specific file folder when uploading to a file field from the backend.

I have the following TCA code from the upload file field:

'document' => [
    'label' => 'Label',
    'description'   => 'Description',
    'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
        'document',
        [
            'minitems' => 1,
            'maxitems' => 1,
            'appearance' => [
                'fileUploadAllowed' => false,
            ],
        ], 'pdf'
    )
],

I don't know if there is some kind of option to set the folder for the upload files field, something like:

'folder' => '/fileadmin/myfolder',
1

There are 1 best solutions below

0
On