]> source.dussan.org Git - nextcloud-server.git/commit
fix(files): Allow downloading multiple nodes not from same base backport/49203/stable29
authorFerdinand Thiessen <opensource@fthiessen.de>
Mon, 11 Nov 2024 15:51:43 +0000 (16:51 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Tue, 19 Nov 2024 19:24:58 +0000 (20:24 +0100)
commit4b7014d805725d25dec1e9820f091512cb858fc5
treec301e4f5f1874d39d43ae7e8390cc9f0bd4558e0
parent42ca32b085d0e1c9df256818f047206382a9c7fd
fix(files): Allow downloading multiple nodes not from same base

When downloading files in e.g. the *favorites* or *recent* view,
then the nodes are not always share the same parent folder
and we can not use the current directory as it is probably just a
virtual one.

So we calculate the longest common base and use that as the directory
for the download endpoint.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/src/actions/downloadAction.spec.ts
apps/files/src/actions/downloadAction.ts
apps/files/src/actions/editLocallyAction.spec.ts
apps/files/src/actions/sidebarAction.ts