I don't remember if I've already asked this question (it's not so easy to search on this forum). I need to modify / override the core class MediaLibrary in order to make it work correctly with Digital Ocean Spaces. Of course if I modify the library directly I lose all the modifications at the next core update. What is the correct way to do it (if there is one)?
Thanks in advance