0a1,26 > diff --git a/media_fotoweb.info.yml b/media_fotoweb.info.yml > index fd3ccd2..13aeb21 100644 > --- a/media_fotoweb.info.yml > +++ b/media_fotoweb.info.yml > @@ -1,7 +1,7 @@ > name: 'Media Fotoweb' > type: module > description: 'Integrates media with the digital asset management from fotoware.com' > -core_version_requirement: ^8.7.7 || ^9 > +core_version_requirement: ^9.3 || ^10 > package: 'Media' > configure: media_fotoweb.settings > > diff --git a/src/Plugin/media/Source/Fotoweb.php b/src/Plugin/media/Source/Fotoweb.php > index 07ff4b9..cf2f7df 100644 > --- a/src/Plugin/media/Source/Fotoweb.php > +++ b/src/Plugin/media/Source/Fotoweb.php > @@ -357,7 +357,7 @@ class Fotoweb extends MediaSourceBase { > } > } > > - $file = file_save_data($data, $destination_path, $replace); > + $file = \Drupal::service('file.repository')->writeData($data, $destination_path, $replace); > > return $file; > }