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;
		
	}
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;
		
	}
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 ; }
Will returns percentual of upload progress with APC.

@param	string	UniqueID del caricamento
@return int
Will returns percentual of upload progress with APC .