Posts

Showing posts from December, 2019

Liferay DXP - max upload file size

Image
Liferay DXP - increase Maximum Upload Request Size By default, Liferay has limit to 100 MB for file upload. Sometimes you need to upload larger files, and this restriction can be changed in configuration. Go to Control Panel -> Configuration -> System Settings -> Infrastructure. Click on "Upload Servlet Request". Modify " Overall Maximum Upload Request Size"  value and set which you need: Save the configuration. Now you should be able to upload large files to your Liferay DXP instance.

Liferay 7 - custom LoginPreAction / LoginPostAction

Image
Liferay 7 - custom Login Pre/Post Action Overview This article describes how to create custom post/pre login actions in Liferay 7+. Module Creation Create  service  Liferay module for the LoginPostAction Sample configuration: package name:  com.lifedev.login.events service name:  CustomLoginPostAction module name:  login-post-action Defining dependencies Define dependencies in  build.gradle  file: dependencies { compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel" compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations" compileOnly group: "javax.servlet", name: "javax.servlet-api" } Defining OSGi metadata Define OSGi metadata in  bnd.bnd , sample: Bundle-Name: LifeDev Login Post Action Bundle-SymbolicName: com.lifedev.login.events Bundle-Version: 1.0.0 LoginPostAction implementation Implement  CustomLoginP