]> source.dussan.org Git - nextcloud-server.git/commit
extend storage api to allow directly writing a stream to storage
authorRobin Appelman <robin@icewind.nl>
Fri, 26 Oct 2018 17:15:23 +0000 (19:15 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 31 Oct 2018 20:10:44 +0000 (21:10 +0100)
commit93de63777e4a519484ad8f50f7a8ee809697c20a
tree9a2d670e0eedf42bc7aaf38cf5dfcd53c78c94c2
parent3c442e4138883f45a8ab123f8405017e7a99e283
extend storage api to allow directly writing a stream to storage

this removes the need for temporary storages with some external storage backends.
The new method is added to a separate interface to maintain compatibility with
storage backends implementing the storage interface directly (without inheriting common)

Currently the interface is implemented for objectstorage based storages and local storage
and used by webdav uploads

Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/dav/lib/Connector/Sabre/File.php
lib/private/Files/ObjectStore/ObjectStoreStorage.php
lib/private/Files/Storage/Common.php
lib/private/Files/Storage/Local.php
lib/private/Files/Stream/CountReadStream.php [new file with mode: 0644]
lib/public/Files/Storage/IWriteStreamStorage.php [new file with mode: 0644]
tests/lib/Files/Stream/CountReadStreamTest.php [new file with mode: 0644]