public static function getUploadProgress($uniqueId) {
		
		$upload = apc_fetch('upload_' . $uniqueId);
		if ($upload['done']) {
			$percent = 100;
		} else if (0 == $upload['total']) {
			$percent = 0;
		} else {
			$percent = round(($upload['current'] / $upload['total'] * 100), 0);
		}
		return $percent;
		
	}