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: #5006
  • Loading branch information
Sebobo committed Apr 23, 2024
1 parent 6841c68 commit fbc6ea9
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 fbc6ea9

Please sign in to comment.