mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-25 17:46:10 +01:00
Allow png images in file import from destination one
This commit is contained in:
parent
8bd15ac380
commit
b99f19b79d
2 changed files with 10 additions and 1 deletions
|
@ -463,12 +463,19 @@ class DestinationDataImportService
|
|||
{
|
||||
$this->logger->info("Set assets");
|
||||
|
||||
$allowedMimeTypes = [
|
||||
'image/jpeg',
|
||||
'image/png',
|
||||
];
|
||||
$importFolder = $this->import->getFilesFolder();
|
||||
|
||||
$error = false;
|
||||
|
||||
foreach ($assets as $media_object) {
|
||||
if ($media_object['rel'] == "default" && $media_object['type'] == "image/jpeg") {
|
||||
if (
|
||||
$media_object['rel'] == "default"
|
||||
&& in_array($media_object['type'], $allowedMimeTypes)
|
||||
) {
|
||||
$fileUrl = urldecode($media_object['url']);
|
||||
$orgFileNameSanitized = $importFolder->getStorage()->sanitizeFileName(
|
||||
basename(
|
||||
|
|
|
@ -37,6 +37,8 @@ Fixes
|
|||
|
||||
Relates: #10253
|
||||
|
||||
* Support import of png images from Destination One.
|
||||
|
||||
Tasks
|
||||
-----
|
||||
|
||||
|
|
Loading…
Reference in a new issue