Obviously, everyone will recommend Nextcloud. And yes, it works. But it is heavy and can feel slow.
I then moved to OwnCloud, the original project behind Nextcloud, which I found significantly faster. After that, I switched to OpenCloud, which is closely related to OwnCloud. It is less intuitive to set up, but it is extremely lightweight and very fast. That is the one I recommend.
Depending on your use case, there are plenty of other options as well, such as Seafile, Filerun, Filestash, Copyparty, and others.