code: function(size) {
  
  		if (size === undef || /\D/.test(size)) {
  			return plupload.translate('N/A');
  		}
  
  		function round(num, precision) {
  			return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision);
  		}
  
  		var boundary = Math.pow(1024, 4);
  
  		// TB
  		if (size > boundary) {
  			return round(size / boundary, 1) + " " + plupload.translate('tb');
  		}
  
  		// GB
  		if (size > (boundary/=1024)) {
  			return round(size / boundary, 1) + " " + plupload.translate('gb');
  		}
  
  		// MB
  		if (size > (boundary/=1024)) {
  			return round(size / boundary, 1) + " " + plupload.translate('mb');
  		}
  
  		// KB
  		if (size > 1024) {
  			return Math.round(size / 1024) + " " + plupload.translate('kb');
  		}
  
  		return size + " " + plupload.translate('b');
  	}
docs: Formats the specified number as a size string for example 1024 becomes 1 KB.
  
  @method formatSize
  @static
  @param {Number} size Size to format as string.
  @return {String} Formatted size string.