anchor.diff:  		var maxUploadFileSizeInMb = <%=maxUploadFileSizeInMb %>;
   		var maxUploadFileSizeInByte = maxUploadFileSizeInMb*1024*1024;
   		
  +		var maxTotalUploadFileSizeInMb = <%=maxTotalUploadFileSizeInMb%>
  +		var maxTotalUploadFileSizeInByte = maxTotalUploadFileSizeInMb*1024*1024;
  +		
   		var fileUploadSizeInByte = 0;
  +		var totalUploadFileSizeInByte = <%=totalUploadFileSizeInByte%>;
   		
   		$('#<portlet:namespace />dossierFileUpload').on('change', function() {
   			fileUploadSizeInByte = this.files[0].size;
  +			totalUploadFileSizeInByte += fileUploadSizeInByte;
   		});
   		
   		if(agreeButton) {
  
positive.code: 			}
  		}
  	}
  	System.out.println("============== totalUploadFileSizeInByte: "+totalUploadFileSizeInByte);
  %>
  
  <portlet:actionURL var="addAttachmentFileURL" name="addAttachmentFile"/>
  
negative.code: 				} else
  				if (fileUploadSizeInByte > maxUploadFileSizeInByte && maxUploadFileSizeInByte > 0) {
  					alert('<%= LanguageUtil.get(themeDisplay.getLocale(), "please-upload-dossier-part-size-smaller-than") %>' + ' ' + maxUploadFileSizeInMb + ' Mb');
  				}else 
  				if (totalUploadFileSizeInByte > maxTotalUploadFileSizeInByte && maxTotalUploadFileSizeInByte > 0) {
  					alert('<%= LanguageUtil.get(themeDisplay.getLocale(), "overload-total-file-upload-size") %>' + ' ' + maxTotalUploadFileSizeInMb + ' Mb');
  				}else 
  				{
  					submitForm(document.<portlet:namespace />fm);
  				}
  				
  