matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.12k forks source link

Transform `MediaStorage.local_media_directory` into an optional storage provider #16751

Open vfosnar opened 11 months ago

vfosnar commented 11 months ago

Description:

To address #7140 and https://github.com/matrix-org/synapse-s3-storage-provider/issues/28, we need reimplement MediaStorage.local_media_directory as a storage provider (MediaStorage.storage_providers). This will allow us to optionally disable local media storage in case we want to store data remotely, for example on S3.