public function removeFile($filename) {
		if( ($key = array_search($filename, $this->attachedFiles)) === false ) {
			throw new \Exception('FileNotContained');
		}
		unset($this->attachedFiles[$key]);
	}