mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 20:48:18 +00:00
Tell storage providers about new file so they can upload
This commit is contained in:
@@ -70,6 +70,12 @@ class MediaStorage(object):
|
||||
_write_file_synchronously, source, fname,
|
||||
))
|
||||
|
||||
# Tell the storage providers about the new file. They'll decide
|
||||
# if they should upload it and whether to do so synchronously
|
||||
# or not.
|
||||
for provider in self.storage_providers:
|
||||
yield provider.store_file(path, file_info)
|
||||
|
||||
defer.returnValue(fname)
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
||||
Reference in New Issue
Block a user