How to change Portrait/Profile photo in liferay programitically.
Sometime liferay developer need to change profile/portrait photo programmatically . Here i want to share my experience. Create portlet action url and method as below: In jsp file create action url: <script type="text/javascript" src="<%= request.getContextPath()%>/js/jasny-bootstrap.min.js"></script> <link rel="stylesheet" href="<%= request.getContextPath()%>/css/jasny-bootstrap.min.css"> <portlet:actionURL name="updateProfile" var="updateProfileURL" windowState="normal"/> <form action="<%=updateProfileURL %>" method="post" enctype="multipart/form-data" id='<portlet:namespace/>updateProfile'> <input name="<portlet:namespace/>userEmail" id='<portlet:namespace/>userEmail' type="hidden" value="" /> <div class="col-xs-12 col...