bewcloud/routes/api/files
Tilman c4a5166e3b
Support downloading directories as a zip archive (#106)
* Add directory download as zip feature

Implements the ability for users to download directories as zip files if enabled in config. Adds a new API route for directory zipping, updates UI components to show a download button for directories, and introduces related config and type changes. Also includes a new download icon.

* Windows path bugfix

* Include empty directories in zip archive

* Address feedback

- `isDirectoryDownloadsAllowed` -> `areDirectoryDownloadsAllowed`
- send `parentPath` & `name` to API instead of resolving `fullPath` on client
- call `ensureUserPathIsValidAndSecurelyAccessible` before zipping
- set config `allowDirectoryDownloads` default to `false`
- add `zip` to Dockerfile and replace in-house zip algorithm
- replace `download.svg` with heroicon's `arrow-down-tray`
- `replace` with glob -> `replaceAll` with string

* Cleanup apt-get command

* Remove unused zip archive and directory functions
2025-10-08 14:32:45 +01:00
..
create-directory.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
create-share.tsx Fix Windows clients sending the wrong path for public sharing 2025-06-22 11:19:02 +01:00
delete-directory.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
delete-share.tsx Public File Sharing (#72) 2025-06-20 12:04:16 +01:00
delete.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
download-directory.tsx Support downloading directories as a zip archive (#106) 2025-10-08 14:32:45 +01:00
get-directories.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
get-share.tsx Public File Sharing (#72) 2025-06-20 12:04:16 +01:00
get.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
move-directory.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
move.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
rename-directory.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
rename.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
search.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00
update-share.tsx Public File Sharing (#72) 2025-06-20 12:04:16 +01:00
upload.tsx Refactor data handlers + misc fixes 2025-05-24 08:24:10 +01:00