Skip to content

Commit

Permalink
BUGFIX: Add missing type converts for asset subtypes
Browse files Browse the repository at this point in the history
This prevents the raw data from being base64 encoded into the
rendered output of the Neos backend and included in
xhr requests from the Neos UI.

Additionally the default settings for editor and constraints makes the usage of those affected types easier in nodetype properties.

Resolves: neos#5006
  • Loading branch information
Sebobo authored and mhsdesign committed May 12, 2024
1 parent 7c5784f commit fded8dd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Neos.Neos/Configuration/Settings.yaml
Expand Up @@ -201,6 +201,33 @@ Neos:
features:
upload: true
mediaBrowser: true
Neos\Media\Domain\Model\Audio:
typeConverter: Neos\Neos\TypeConverter\EntityToIdentityConverter
editor: Neos.Neos/Inspector/Editors/AssetEditor
editorOptions:
features:
upload: true
mediaBrowser: true
constraints:
mediaTypes:
- 'audio/*'
Neos\Media\Domain\Model\Document:
typeConverter: Neos\Neos\TypeConverter\EntityToIdentityConverter
editor: Neos.Neos/Inspector/Editors/AssetEditor
editorOptions:
features:
upload: true
mediaBrowser: true
Neos\Media\Domain\Model\Video:
typeConverter: Neos\Neos\TypeConverter\EntityToIdentityConverter
editor: Neos.Neos/Inspector/Editors/AssetEditor
editorOptions:
features:
upload: true
mediaBrowser: true
constraints:
mediaTypes:
- 'video/*'
array<Neos\Media\Domain\Model\Asset>:
typeConverter: Neos\Flow\Property\TypeConverter\TypedArrayConverter
editor: Neos.Neos/Inspector/Editors/AssetEditor
Expand Down

0 comments on commit fded8dd

Please sign in to comment.