我有研讨会扩展,它有两个字段可以浏览文件。检查以下TCA配置:
字段图像:
'image' => [
'exclude' => 1,
'label' => 'LLL:EXT:seminars/Resources/Private/Language/locallang_db.xlf:
tx_seminars_seminars.image',
'config' => [
'type' => 'group',
'internal_type' => 'file',
'allowed' => 'gif,png,jpeg,jpg',
'max_size' => 4096,
'uploadfolder' => 'uploads/tx_seminars',
'size' => 1,
'minitems' => 0,
'maxitems' => 1,
],
],
字段附加文件:
'attached_files' => [
'exclude' => 1,
'label' => 'LLL:EXT:seminars/Resources/Private/Language/locallang_db.xlf:tx_seminars_seminars.attached_files',
'config' => [
'type' => 'group',
'internal_type' => 'file',
'allowed' => 'jpg,jpeg,png,bmp,gif,tiff,tif,' . 'txt,pdf,ps,' .
'svg,' . 'doc,docx,sxw,odt,' . 'xls,xlsx,sxc,ods,' .
'ppt,pptx,sxi,odp,' . 'html,htm,css,js,xml,xsd,' .
'zip,rar,gz,tgz,tar,bz2,tbz,tbz2',
'max_size' => 4096,
'uploadfolder' => 'uploads/tx_seminars/',
'size' => 5,
'maxitems' => 200,
'minitems' => 0,
'autoSizeMax' => 40,
],
],
从TYPO3 6.x升级到8 LTS后,由于文件上载字段,记录未保存。如果我删除其中一个字段,则说明该字段工作正常。 有人可以帮我吗?
感谢前进!