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