]> source.dussan.org Git - nextcloud-server.git/commit
fix(files): Allow downloading multiple nodes not from same base
authorFerdinand Thiessen <opensource@fthiessen.de>
Mon, 11 Nov 2024 15:51:43 +0000 (16:51 +0100)
committernextcloud-command <nextcloud-command@users.noreply.github.com>
Wed, 20 Nov 2024 09:06:11 +0000 (09:06 +0000)
commit39e34fd9d9be29275bbc41630bc3fb816edebd41
treec908f124596a1573afe5e56828a80ab2668552bd
parent8ef61456094f42b4b6a7cf535937e2eafd4ae7ba
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