How to support file upload in web-form Liferay 7?

 ̄綄美尐妖づ 提交于 2019-12-05 06:27:36

You need to create a custom form field type plugin, please find liferay wiki here Creating Form Field Type. and follow below steps,

  1. Change input type to file in soy file path is

    src/main/resources/META-INF/resources/your-plugin-type-name.soy

  2. Create a fragment of dynamic.data.list.form.web bundle and override display/view.jsp to accept the file i.e. multipart data.
  3. Override AddRecordMVCActionCommand action command to store the selected file as you required.
  4. Build and deploy all 3 plugins

Hope this will help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!