Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Contao CMS 3.5.x,我已成功在后端 (DCA) 上添加了一个“附件”。现在我需要我的前端用户(成员)从前端上传一个文档(并将其保存在同一个数据库字段中)。从前端的角度来看,我该如何做到这一点?
谢谢
您可以通过写入所需表格的表单生成器创建表单。但是,Contao 仅将上传文件的相对文件路径存储到数据库中 - 但您可能需要一个 UUID。
您可以使用fritzmg/contao-store-uuid自动存储文件字段的 UUID。