Upload file and change permisions in right way

		if(! move_uploaded_file($file['tmp_name'], $this->full_name ) )
			throw new Exception("Error to save the file {$this->full_name}");
		
		$oldumask = umask(0);
		
		if( ! chmod( $this->full_name, 0755 ) ) 
			throw new Exception("Error to set permissions for the file {$this->full_name}");	
		
		umask($oldumask);