diff --git a/invenio_rdm_records/services/config.py b/invenio_rdm_records/services/config.py index 5c4e796ca..b95a54d52 100644 --- a/invenio_rdm_records/services/config.py +++ b/invenio_rdm_records/services/config.py @@ -341,6 +341,10 @@ class RDMFileRecordServiceConfig(FileServiceConfig, ConfiguratorMixin): file_schema = FileSchema + components = FromConfig( + "RDM_FILES_SERVICE_COMPONENTS", default=FileServiceConfig.components + ) + class ThumbnailLinks(RecordLink): """RDM thumbnail links dictionary.""" @@ -751,6 +755,10 @@ class RDMFileDraftServiceConfig(FileServiceConfig, ConfiguratorMixin): file_schema = FileSchema + components = FromConfig( + "RDM_DRAFT_FILES_SERVICE_COMPONENTS", default=FileServiceConfig.components + ) + class RDMMediaFileDraftServiceConfig(FileServiceConfig, ConfiguratorMixin): """Configuration for draft media files."""