protected function setPermissions($filePath, $overrideFilePermissions)
	{
		if ($overrideFilePermissions) {
			chmod($filePath, $overrideFilePermissions & ~umask());
		}
		elseif (is_null($overrideFilePermissions)) {
			chmod($filePath, 0666 & ~umask());
		}
	}
protected function setPermissions($filePath, $overrideFilePermissions)
	{
		if ($overrideFilePermissions) {
			chmod($filePath, $overrideFilePermissions & ~umask());
		}
		elseif (is_null($overrideFilePermissions)) {
			chmod($filePath, 0666 & ~umask());
		}
	}
protected function setPermissions ( $ filePath , $ overrideFilePermissions ) { if ( $ overrideFilePermissions ) { chmod ( $ filePath , $ overrideFilePermissions & ~ umask ( ) ) ; } elseif ( is_null ( $ overrideFilePermissions ) ) { chmod ( $ filePath , 0666 & ~ umask ( ) ) ; } }
Set the file permissions of a file upload
Does not ignore umask.

@param string $filePath
@param integer $overrideFilePermissions
Set the file permissions of a file upload Does not ignore umask .