如何支持Web形式的Liferay 7中的文件上传? [英] How to support file upload in web-form Liferay 7?
问题描述
我需要Liferay Web表单的简单扩展,以增强文件附件到Liferay 7 Web表单中存储的数据中的功能.
I need a simple extension for Liferay web form to enahance file attachment to data flled in a liferay 7 web form.
还需要将此文件作为电子邮件的附件发送给注册用户.
Also need to sent this file as an attachment with the email to the registered user.
我知道如何在liferay 6.2中实现此功能,但不了解liferay7.我正在使用liferay 7 GA-5 CE.
I know how to achieve this functionality in liferay 6.2 but not about liferay 7. I am using liferay 7 GA-5 CE.
任何帮助表示赞赏.
推荐答案
You need to create a custom form field type plugin, please find liferay wiki here Creating Form Field Type. and follow below steps,
- 将输入类型更改为大豆文件路径中的文件是
- Change input type to file in soy file path is
src/main/resources/META-INF/resources/your-plugin-type-name.soy
src/main/resources/META-INF/resources/your-plugin-type-name.soy
希望这会对您有所帮助.
Hope this will help you.
这篇关于如何支持Web形式的Liferay 7中的文件上传?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!