anchor.diff:  			fileUploadSizeInByte = this.files[0].size;
   			totalUploadFileSizeInByte += fileUploadSizeInByte;
   		});
  +		
  +		console.log("======= maxTotalUploadFileSizeInByte: "+maxTotalUploadFileSizeInByte);
  +		console.log("======= totalUploadFileSizeInByte: "+totalUploadFileSizeInByte);
   		
   		if(agreeButton) {
   			agreeButton.on('click', function() {
  
positive.code: 		// Validate size and type file upload
  		
  		var maxUploadFileSizeInByte = '<%=PortletUtil.convertSizeUnitToByte(maxUploadFileSize, FileSizeUnit.getEnum(maxUploadFileSizeUnit))%>';
  		
  		var maxTotalUploadFileSizeInByte = '<%=PortletUtil.convertSizeUnitToByte(maxTotalUploadFileSize, FileSizeUnit.getEnum(maxTotalUploadFileSizeUnit))%>';
  
  		
  		var fileUploadSizeInByte = 0;
  		var totalUploadFileSizeInByte = '<%=totalUploadFileSizeInByte%>';
  
negative.code: 	
  	String maxTotalUploadFileSizeUnit = preferences.getValue("maxTotalUploadFileSizeUnit", PortletConstants.FileSizeUnit.MB.toString());
  	
  	System.out.println("=========== maxTotalUploadFileSize: "+maxTotalUploadFileSize);
  	System.out.println("=========== maxTotalUploadFileSizeUnit: "+maxTotalUploadFileSizeUnit);
  	
  	float maxUploadFileSize = GetterUtil.getFloat(preferences.getValue("maxUploadFileSize", String.valueOf(0)), 0);
  	
  	String maxUploadFileSizeUnit = preferences.getValue("maxUploadFileSizeUnit", PortletConstants.FileSizeUnit.MB.toString());
  