protected function storeTempFile($tmpFile, $filename, $container)
    {
        // Save file into backend
        $conflictResolution = $this->replaceFile
            ? AssetStore::CONFLICT_OVERWRITE
            : AssetStore::CONFLICT_RENAME;
        $config = array(
            'conflict' => $conflictResolution,
            'visibility' => $this->getDefaultVisibility()
        );
        return $container->setFromLocalFile($tmpFile['tmp_name'], $filename, null, null, $config);
    }