mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Replace calls to mediavorus to getMediaFromUri
This commit is contained in:
@@ -152,9 +152,7 @@ class FeedController extends Controller
|
||||
throw new BadRequestHttpException('Uploaded file is invalid');
|
||||
}
|
||||
|
||||
/** @var MediaVorus $mediavorus */
|
||||
$mediavorus = $this->app['mediavorus'];
|
||||
$media = $mediavorus->guess($file->getPathname());
|
||||
$media = $this->app->getMediaFromUri($file->getPathname());
|
||||
|
||||
if ($media->getType() !== MediaInterface::TYPE_IMAGE) {
|
||||
throw new BadRequestHttpException('Bad filetype');
|
||||
|
Reference in New Issue
Block a user