public function save(MediaProviderInterface $mediaProvider, $andFlush = true)
    {
        $context = $mediaProvider->getMedia()->getContext();
        $provider = $this->providerService->getProviderManager($context);

        if (null !== $mediaProvider->getMedia()->getFile()) {
            $this->uploadProcess($provider, $mediaProvider);
        }

        $this->persistProcess($provider, $mediaProvider, $andFlush);
    }