public function storeFileData(File $file, $sourceFilePath)
	{
		$this->validateFileUpload($file, $sourceFilePath);

		$this->createBothFoldersInFileSystem($file);

		$filePath = $this->getFilesystemPath($file);

		if ( ! copy($sourceFilePath, $filePath)) {
			throw new Exception\RuntimeException('Failed to copy file form "' . $sourceFilePath . '" to "' . $filePath . '"');
		} else {
			chmod($filePath, $this->fileAccessMode);
		}
	}
public function storeFileData(File $file, $sourceFilePath)
	{
		$this->validateFileUpload($file, $sourceFilePath);

		$this->createBothFoldersInFileSystem($file);

		$filePath = $this->getFilesystemPath($file);

		if ( ! copy($sourceFilePath, $filePath)) {
			throw new Exception\RuntimeException('Failed to copy file form "' . $sourceFilePath . '" to "' . $filePath . '"');
		} else {
			chmod($filePath, $this->fileAccessMode);
		}
	}
public function storeFileData ( File $ file , $ sourceFilePath ) { $ this -> validateFileUpload ( $ file , $ sourceFilePath ) ; $ this -> createBothFoldersInFileSystem ( $ file ) ; $ filePath = $ this -> getFilesystemPath ( $ file ) ; if ( ! copy ( $ sourceFilePath , $ filePath ) ) { throw new Exception \ RuntimeException ( 'Failed to copy file form "' . $ sourceFilePath . '" to "' . $ filePath . '"' ) ; } else { chmod ( $ filePath , $ this -> fileAccessMode ) ; } }
Store file data

@param File $file
@param string $source
Store file data