在TYPO3/extbase中使用FAL从前端上载多个图像
我使用这个Helhum示例从前端上传图像,该前端位于以下链接上在TYPO3/extbase中使用FAL从前端上载多个图像,typo3,extbase,typo3-7.6.x,Typo3,Extbase,Typo3 7.6.x,我使用这个Helhum示例从前端上传图像,该前端位于以下链接上 https://github.com/helhum/upload_example 如果我们在位置上的部分文件中检查其表单字段 有两个上传选项,如下所示 {namespace h=Helhum\UploadExample\ViewHelpers} <label for="title"> <f:translate key="tx_uploadexample_domain_model_example.titl
https://github.com/helhum/upload_example
如果我们在位置上的部分文件中检查其表单字段
有两个上传选项,如下所示
{namespace h=Helhum\UploadExample\ViewHelpers}
<label for="title">
<f:translate key="tx_uploadexample_domain_model_example.title" /> <span class="required">(required)</span>
</label><br />
<f:form.textfield property="title" /><br />
<label for="image">
<f:translate key="tx_uploadexample_domain_model_example.image" />
</label><br />
<h:form.upload property="image" >
<f:if condition="{resource}">
<f:image image="{resource}" alt="" width="50"/>
</f:if>
</h:form.upload><br />
<label for="image_collection">
<f:translate key="tx_uploadexample_domain_model_example.image_collection" />
</label><br />
{namespace h=Helhum\UploadExample\ViewHelpers}
(必选)
对于
property=“imageCollection.0”
,如果我将其设置为multiple=“multiple”
,则会出现以下错误
1297759968:属性路径“imageCollection”处的属性映射时发生异常:PHP警告:spl_object_hash()需要参数1
要成为对象,请在中指定null
/var/www/webroot/typo3_src-7.6.14/typo3/sysext/extbase/Classes/Persistence/ObjectStorage.php第155行(更多信息)
如果我删除0并尝试单击一个botton,那么它甚至不会生成表单,并给出以下错误
1297759968:在属性路径“”处进行属性映射时发生异常:源不是字符串、数组、浮点、整数或布尔类型,而是
键入“对象”(详细信息)
长话短说,我如何修复这个多图像上传的例子。我尝试在没有助手的情况下使用函数,只是使用了标准流体函数
它仍然会给我同样的错误。请有人帮我解决这个问题。请检查此链接是否有用并修复您的问题,此链接似乎不再有效。是否有解决方案。这是解决方案请检查此链接是否有用并修复您的问题,此链接似乎不再有效。是否有解决方案。这就是解决办法