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',